


'''simple docstring'''
import json
import os
import pickle
import subprocess
from hashlib import mda
from pathlib import Path
from tempfile import gettempdir
from textwrap import dedent
from types import CodeType, FunctionType
from unittest import TestCase
from unittest.mock import patch

import pytest
from multiprocess import Pool
from packaging import version

import datasets
from datasets.fingerprint import Hasher, fingerprint_transform
from datasets.table import InMemoryTable

from .utils import (
    require_regex,
    require_spacy,
    require_spacy_model,
    require_tiktoken,
    require_torch,
    require_transformers,
)






class 		UpperCamelCase_		:





						"""simple docstring"""




						def __init__( self				:					str	,				_lowerCamelCase				:					Tuple  )							->					Any:
										__magic_name__	  = foo

						def __call__( self				:					List[Any]  )							->					Tuple:
										return self.foo






class 		UpperCamelCase_		(					datasets.Dataset   ):





						"""simple docstring"""




						@fingerprint_transform(inplace=_lowerCamelCase  )
						def 					__A					( self				:					Tuple	,				_lowerCamelCase				:					Union[str, Any]	,				*_lowerCamelCase				:					str	,				**_lowerCamelCase				:					Optional[int]  )							->					str:
										return DatasetChild(self.data	,				fingerprint=_lowerCamelCase  )

						@fingerprint_transform(inplace=_lowerCamelCase  )
						def 					__A					( self				:					Union[str, Any]	,				_lowerCamelCase				:					List[str]	,				*_lowerCamelCase				:					str	,				**_lowerCamelCase				:					Union[str, Any]  )							->					Any:
										return DatasetChild(self.data	,				fingerprint=_lowerCamelCase  )






class 		UpperCamelCase_		:





						"""simple docstring"""




						def __init__( self				:					Optional[Any]	,				_lowerCamelCase				:					Dict  )							->					List[Any]:
										__magic_name__	  = callable
						def __call__( self				:					Optional[Any]	,				*_lowerCamelCase				:					Union[str, Any]	,				**_lowerCamelCase				:					int  )							->					List[Any]:
										if self.callable is not None:
														return self.callable(*_lowerCamelCase	,				**_lowerCamelCase  )

						def __getstate__( self				:					str  )							->					Optional[Any]:
										raise pickle.PicklingError()






class 		UpperCamelCase_		(					A   ):





						"""simple docstring"""




						@require_transformers
						@pytest.mark.integration
						def 					__A					( self				:					Optional[int]  )							->					Dict:
										from transformers import AutoTokenizer

										def encode(_lowerCamelCase				:					List[Any]  ):
														return tokenizer(_lowerCamelCase  )

										# TODO: add hash consistency tests across sessions
										__magic_name__	  = AutoTokenizer.from_pretrained("bert-base-uncased"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(lambda _lowerCamelCase  : tokenizer(_lowerCamelCase  )  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = AutoTokenizer.from_pretrained("bert-base-cased"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(lambda _lowerCamelCase  : tokenizer(_lowerCamelCase  )  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = AutoTokenizer.from_pretrained("bert-base-uncased"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(lambda _lowerCamelCase  : tokenizer(_lowerCamelCase  )  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
						@require_transformers
						@pytest.mark.integration
						def 					__A					( self				:					List[Any]  )							->					Tuple:
										from transformers import AutoTokenizer

										__magic_name__	  = AutoTokenizer.from_pretrained("gpt2"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										tokenizer("Hello world !"  )  # call once to change the tokenizer's cache
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )

						@require_regex
						def 					__A					( self				:					Any  )							->					Optional[Any]:
										import regex

										__magic_name__	  = regex.Regex("foo"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = regex.Regex("bar"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = regex.Regex("foo"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )






class 		UpperCamelCase_		(					A   ):





						"""simple docstring"""




						def 					__A					( self				:					Tuple  )							->					Any:
										def func():
														return foo

										__magic_name__	  = [0]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = [1]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = [0]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
						def 					__A					( self				:					Tuple  )							->					Any:
										def func():
														pass

										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()

										def func():
														pass

										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
						def 					__A					( self				:					Tuple  )							->					Optional[int]:
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(Foo([0]  )  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(Foo([1]  )  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(Foo([0]  )  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
						def 					__A					( self				:					Any  )							->					int:
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(Foo([0]  ).__call__  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(Foo([1]  ).__call__  )  ).hexdigest()
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(Foo([0]  ).__call__  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
						def 					__A					( self				:					str  )							->					str:
										__magic_name__	  = (
										    "co_argcount",
										    "co_kwonlyargcount",
										    "co_nlocals",
										    "co_stacksize",
										    "co_flags",
										    "co_code",
										    "co_consts",
										    "co_names",
										    "co_varnames",
										    "co_filename",
										    "co_name",
										    "co_firstlineno",
										    "co_lnotab",
										    "co_freevars",
										    "co_cellvars",
										)

										def _create_code_pyaa(*_lowerCamelCase				:					List[str]  ):
														if hasattr(args[-3]	,				"encode"  ):
																		__magic_name__	  = list(_lowerCamelCase  )
																		__magic_name__	  = args[-3].encode()  # co_lnotab
																		__magic_name__	  = args[-10].encode()  # co_code
														if hasattr(_lowerCamelCase	,				"co_posonlyargcount"  ):
																		if len(_lowerCamelCase  ) == 16:
																						return CodeType(*_lowerCamelCase  )
																		elif len(_lowerCamelCase  ) == 15:
																						return CodeType(args[0]	,				0	,				*args[1:]  )
																		return CodeType(args[0]	,				0	,				0	,				*args[1:]  )
														elif hasattr(_lowerCamelCase	,				"co_kwonlyargcount"  ):
																		if len(_lowerCamelCase  ) == 16:
																						return CodeType(args[0]	,				*args[2:]  )
																		elif len(_lowerCamelCase  ) == 15:
																						return CodeType(*_lowerCamelCase  )
																		return CodeType(args[0]	,				0	,				*args[1:]  )
														if len(_lowerCamelCase  ) == 16:
																		return CodeType(args[0]	,				*args[3:]  )
														elif len(_lowerCamelCase  ) == 15:
																		return CodeType(args[0]	,				*args[2:]  )
														return CodeType(*_lowerCamelCase  )

										def create_ipython_func(_lowerCamelCase				:					Tuple	,				_lowerCamelCase				:					List[Any]  ):
														def func():
																		return returned_obj

														__magic_name__	  = func.__code__
														# Use _create_code from dill in order to make it work for different python versions
														if datasets.config.PY_VERSION < version.parse("3.8"  ):
																		__magic_name__	  = _create_code_pyaa(
																		    *[getattr(_lowerCamelCase	,				_lowerCamelCase  ) if k != "co_filename" else co_filename for k in code_args_pyaa]  )
														else:
																		__magic_name__	  = code.replace(co_filename=_lowerCamelCase  )
														return FunctionType(_lowerCamelCase	,				func.__globals__	,				func.__name__	,				func.__defaults__	,				func.__closure__  )

										__magic_name__  ,      __magic_name__	  = "<ipython-input-2-e0383a102aae>", [0]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(create_ipython_func(_lowerCamelCase	,				_lowerCamelCase  )  )  ).hexdigest()
										__magic_name__  ,      __magic_name__	  = "<ipython-input-2-e0383a102aae>", [1]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(create_ipython_func(_lowerCamelCase	,				_lowerCamelCase  )  )  ).hexdigest()
										__magic_name__  ,      __magic_name__	  = "<ipython-input-5-713f6613acf3>", [0]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(create_ipython_func(_lowerCamelCase	,				_lowerCamelCase  )  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )

										__magic_name__  ,      __magic_name__	  = os.path.join(gettempdir()	,				"ipykernel_12345"	,				"321456789.py"  ), [0]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(create_ipython_func(_lowerCamelCase	,				_lowerCamelCase  )  )  ).hexdigest()
										__magic_name__  ,      __magic_name__	  = os.path.join(gettempdir()	,				"ipykernel_12345"	,				"321456789.py"  ), [1]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(create_ipython_func(_lowerCamelCase	,				_lowerCamelCase  )  )  ).hexdigest()
										__magic_name__  ,      __magic_name__	  = os.path.join(gettempdir()	,				"ipykernel_12345"	,				"654123987.py"  ), [0]
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(create_ipython_func(_lowerCamelCase	,				_lowerCamelCase  )  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )

						def 					__A					( self				:					int  )							->					Tuple:
										__magic_name__  ,      __magic_name__	  = [0], [1]

										def func():
														return foo, bar

										__magic_name__	  = "__main__"

										def globalvars_mocka_side_effect(_lowerCamelCase				:					Optional[int]	,				*_lowerCamelCase				:					List[Any]	,				**_lowerCamelCase				:					List[Any]  ):
														return {"foo": foo, "bar": bar}

										def globalvars_mocka_side_effect(_lowerCamelCase				:					Any	,				*_lowerCamelCase				:					Any	,				**_lowerCamelCase				:					Tuple  ):
														return {"bar": bar, "foo": foo}

										with patch("dill.detect.globalvars"	,				side_effect=_lowerCamelCase  ) as globalvars_mocka:
														__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
														self.assertGreater(globalvars_mocka.call_count	,				0  )
										with patch("dill.detect.globalvars"	,				side_effect=_lowerCamelCase  ) as globalvars_mocka:
														__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
														self.assertGreater(globalvars_mocka.call_count	,				0  )
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )






class 		UpperCamelCase_		(					A   ):





						"""simple docstring"""




						def 					__A					( self				:					Union[str, Any]  )							->					List[str]:
										__magic_name__	  = Hasher.hash("hello"  )
										__magic_name__	  = Hasher.hash("hello"  )
										__magic_name__	  = Hasher.hash("there"  )
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
						def 					__A					( self				:					Dict  )							->					Any:
										__magic_name__	  = Hasher.hash(Foo("hello"  )  )
										__magic_name__	  = Hasher.hash(Foo("hello"  )  )
										__magic_name__	  = Hasher.hash(Foo("there"  )  )
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
						def 					__A					( self				:					Union[str, Any]  )							->					List[str]:
										__magic_name__	  = Hasher()
										for x in ["hello", Foo("hello"  )]:
														hasher.update(_lowerCamelCase  )
										__magic_name__	  = hasher.hexdigest()
										__magic_name__	  = Hasher()
										for x in ["hello", Foo("hello"  )]:
														hasher.update(_lowerCamelCase  )
										__magic_name__	  = hasher.hexdigest()
										__magic_name__	  = Hasher()
										for x in ["there", Foo("there"  )]:
														hasher.update(_lowerCamelCase  )
										__magic_name__	  = hasher.hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
						def 					__A					( self				:					Dict  )							->					Optional[int]:
										with self.assertRaises(pickle.PicklingError  ):
														Hasher.hash(UnpicklableCallable(Foo("hello"  )  )  )
						def 					__A					( self				:					Optional[int]  )							->					List[str]:
										__magic_name__	  = "abc"
										__magic_name__	  = [string, string]  # two strings have the same ids
										__magic_name__	  = [string, string]
										__magic_name__	  = json.loads(f'["{string}", "{string}"]'  )  # two strings have different ids
										self.assertIs(obja[0]	,				_lowerCamelCase  )
										self.assertIs(obja[0]	,				obja[1]  )
										self.assertIs(obja[0]	,				_lowerCamelCase  )
										self.assertIs(obja[0]	,				obja[1]  )
										self.assertIsNot(obja[0]	,				_lowerCamelCase  )
										self.assertIsNot(obja[0]	,				obja[1]  )
										__magic_name__	  = Hasher.hash(_lowerCamelCase  )
										__magic_name__	  = Hasher.hash(_lowerCamelCase  )
										__magic_name__	  = Hasher.hash(_lowerCamelCase  )
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
						@require_tiktoken
						def 					__A					( self				:					Union[str, Any]  )							->					Optional[Any]:
										import tiktoken

										__magic_name__	  = tiktoken.get_encoding("gpt2"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = tiktoken.get_encoding("r50k_base"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = tiktoken.get_encoding("gpt2"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )
						@require_torch
						def 					__A					( self				:					Optional[int]  )							->					List[str]:
										import torch

										__magic_name__	  = torch.tensor([1.0]  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = torch.tensor([2.0]  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = torch.tensor([1.0]  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )

						@require_spacy
						@require_spacy_model("en_core_web_sm"  )
						@require_spacy_model("fr_core_news_sm"  )
						@pytest.mark.integration
						def 					__A					( self				:					Optional[Any]  )							->					Union[str, Any]:
										import spacy

										__magic_name__	  = spacy.load("en_core_web_sm"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = spacy.load("fr_core_news_sm"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										__magic_name__	  = spacy.load("en_core_web_sm"  )
										__magic_name__	  = mda(datasets.utils.py_utils.dumps(_lowerCamelCase  )  ).hexdigest()
										self.assertEqual(_lowerCamelCase	,				_lowerCamelCase  )
										self.assertNotEqual(_lowerCamelCase	,				_lowerCamelCase  )





@pytest.mark.integration
def      __snake_case       (       lowerCamelCase_ :				Path						):
				'''simple docstring'''




				__magic_name__	  = tmp_path / "dir1"
				__magic_name__	  = tmp_path / "dir2"
				dira.mkdir()
				dira.mkdir()
				__magic_name__	  = "script.py"
				__magic_name__	  = dedent(
				    "\n    from datasets.fingerprint import Hasher\n    def foo():\n        pass\n    print(Hasher.hash(foo))\n    "						)
				__magic_name__	  = dira / script_filename
				__magic_name__	  = dira / script_filename
				with script_patha.open("w"						) as f:
								f.write(lowerCamelCase_						)
				with script_patha.open("w"						) as f:
								f.write(lowerCamelCase_						)
				__magic_name__	  = subprocess.check_output(["python", str(lowerCamelCase_						)]						)
				__magic_name__	  = subprocess.check_output(["python", str(lowerCamelCase_						)]						)
				assert fingerprinta == fingerprinta




def      __snake_case       (       ):
				'''simple docstring'''




				__magic_name__	  = {"a": [0, 1, 2]}
				__magic_name__	  = DatasetChild(InMemoryTable.from_pydict(lowerCamelCase_						)						)
				__magic_name__	  = dataset.funca()._fingerprint
				assert expected_fingerprint == dataset.funca()._fingerprint
				assert expected_fingerprint != dataset.funca()._fingerprint

				with Pool(2						) as p:
								assert expected_fingerprint == p.apply_async(dataset.funca						).get()._fingerprint
								assert expected_fingerprint != p.apply_async(dataset.funca						).get()._fingerprint




def      __snake_case       (       ):
				'''simple docstring'''




				__magic_name__	  = {"a": [0, 1, 2]}






				class 		UpperCamelCase_		(					datasets.Dataset   ):





										"""simple docstring"""




										@fingerprint_transform(inplace=_lowerCamelCase  )
										def 					__A					( self				:					List[Any]	,				_lowerCamelCase				:					Tuple  )							->					Union[str, Any]:
														return DummyDatasetChild(self.data	,				fingerprint=_lowerCamelCase  )





				__magic_name__	  = DummyDatasetChild(InMemoryTable.from_pydict(lowerCamelCase_						)						).func()






				class 		UpperCamelCase_		(					datasets.Dataset   ):





										"""simple docstring"""




										@fingerprint_transform(inplace=_lowerCamelCase	,				version="1.0.0"  )
										def 					__A					( self				:					Dict	,				_lowerCamelCase				:					List[Any]  )							->					Optional[int]:
														return DummyDatasetChild(self.data	,				fingerprint=_lowerCamelCase  )





				__magic_name__	  = DummyDatasetChild(InMemoryTable.from_pydict(lowerCamelCase_						)						).func()






				class 		UpperCamelCase_		(					datasets.Dataset   ):





										"""simple docstring"""




										@fingerprint_transform(inplace=_lowerCamelCase	,				version="2.0.0"  )
										def 					__A					( self				:					int	,				_lowerCamelCase				:					Any  )							->					Tuple:
														return DummyDatasetChild(self.data	,				fingerprint=_lowerCamelCase  )





				__magic_name__	  = DummyDatasetChild(InMemoryTable.from_pydict(lowerCamelCase_						)						).func()

				assert len({fingeprint_no_version, fingeprint_a, fingeprint_a}						) == 3




def      __snake_case       (       ):
				'''simple docstring'''




				__magic_name__	  = Hasher()
				hasher.update(lambda lowerCamelCase_						: x						)







'''simple docstring'''
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


__magic_name__   :   List[Any]  							={'configuration_yoso': ['YOSO_PRETRAINED_CONFIG_ARCHIVE_MAP', 'YosoConfig']}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__magic_name__   :   Union[str, Any]  							=[
						    'YOSO_PRETRAINED_MODEL_ARCHIVE_LIST',
						    'YosoForMaskedLM',
						    'YosoForMultipleChoice',
						    'YosoForQuestionAnswering',
						    'YosoForSequenceClassification',
						    'YosoForTokenClassification',
						    'YosoLayer',
						    'YosoModel',
						    'YosoPreTrainedModel',
						]


if TYPE_CHECKING:
						from .configuration_yoso import YOSO_PRETRAINED_CONFIG_ARCHIVE_MAP, YosoConfig

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_yoso import (
												    YOSO_PRETRAINED_MODEL_ARCHIVE_LIST,
												    YosoForMaskedLM,
												    YosoForMultipleChoice,
												    YosoForQuestionAnswering,
												    YosoForSequenceClassification,
												    YosoForTokenClassification,
												    YosoLayer,
												    YosoModel,
												    YosoPreTrainedModel,
												)


else:
						import sys

						__magic_name__   :   Optional[int]  							=_LazyModule(__name__, globals()['__file__'], _import_structure)



