





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 							_a:







		def __init__(     self			,    __snake_case					)   ->   Union[str, Any]:


							'''simple docstring'''

							_snake_case							:       List[Any]												= foo







		def __call__(     self					)   ->   Optional[int]:


							'''simple docstring'''

							return self.foo






class 							_a(     datasets.Dataset     ):







		@fingerprint_transform(inplace=__snake_case					)
		def 							lowercase							(     self			,    __snake_case			,    *__snake_case			,    **__snake_case					)   ->   List[str]:


							'''simple docstring'''

							return DatasetChild(self.data			,    fingerprint=__snake_case					)







		@fingerprint_transform(inplace=__snake_case					)
		def 							lowercase							(     self			,    __snake_case			,    *__snake_case			,    **__snake_case					)   ->   List[str]:


							'''simple docstring'''

							return DatasetChild(self.data			,    fingerprint=__snake_case					)






class 							_a:







		def __init__(     self			,    __snake_case					)   ->   List[Any]:


							'''simple docstring'''

							_snake_case							:       str												= callable







		def __call__(     self			,    *__snake_case			,    **__snake_case					)   ->   Optional[Any]:


							'''simple docstring'''

							if self.callable is not None:
												return self.callable(*__snake_case			,    **__snake_case					)







		def __getstate__(     self					)   ->   Optional[int]:


							'''simple docstring'''

							raise pickle.PicklingError()






class 							_a(     __A     ):







		@require_transformers
		@pytest.mark.integration
		def 							lowercase							(     self					)   ->   Any:


							'''simple docstring'''

							from transformers import AutoTokenizer

							def encode(__snake_case					):
												return tokenizer(__snake_case					)

							# TODO: add hash consistency tests across sessions
							_snake_case							:       Dict												= AutoTokenizer.from_pretrained("bert-base-uncased"					)
							_snake_case							:       str												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Dict												= mda(datasets.utils.py_utils.dumps(lambda __snake_case					: tokenizer(__snake_case					)					)					).hexdigest()
							_snake_case							:       Dict												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       List[Any]												= AutoTokenizer.from_pretrained("bert-base-cased"					)
							_snake_case							:       List[str]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Tuple												= mda(datasets.utils.py_utils.dumps(lambda __snake_case					: tokenizer(__snake_case					)					)					).hexdigest()
							_snake_case							:       Optional[int]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       List[Any]												= AutoTokenizer.from_pretrained("bert-base-uncased"					)
							_snake_case							:       str												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Dict												= mda(datasets.utils.py_utils.dumps(lambda __snake_case					: tokenizer(__snake_case					)					)					).hexdigest()
							_snake_case							:       Optional[Any]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		@require_transformers
		@pytest.mark.integration
		def 							lowercase							(     self					)   ->   Optional[int]:


							'''simple docstring'''

							from transformers import AutoTokenizer

							_snake_case							:       Union[str, Any]												= AutoTokenizer.from_pretrained("gpt2"					)
							_snake_case							:       Dict												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							tokenizer("Hello world !"					)  # call once to change the tokenizer's cache
							_snake_case							:       List[Any]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)







		@require_regex
		def 							lowercase							(     self					)   ->   Union[str, Any]:


							'''simple docstring'''

							import regex

							_snake_case							:       Dict												= regex.Regex("foo"					)
							_snake_case							:       List[Any]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Tuple												= regex.Regex("bar"					)
							_snake_case							:       Tuple												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       int												= regex.Regex("foo"					)
							_snake_case							:       List[str]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)






class 							_a(     __A     ):







		def 							lowercase							(     self					)   ->   Dict:


							'''simple docstring'''

							def func():
												return foo

							_snake_case							:       List[str]												= [0]
							_snake_case							:       str												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Any												= [1]
							_snake_case							:       Tuple												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       List[Any]												= [0]
							_snake_case							:       Optional[int]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		def 							lowercase							(     self					)   ->   Optional[int]:


							'''simple docstring'''

							def func():
												pass

							_snake_case							:       Optional[int]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()

							def func():
												pass

							_snake_case							:       Any												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)







		def 							lowercase							(     self					)   ->   int:


							'''simple docstring'''

							_snake_case							:       Optional[Any]												= mda(datasets.utils.py_utils.dumps(Foo([0]					)					)					).hexdigest()
							_snake_case							:       Optional[Any]												= mda(datasets.utils.py_utils.dumps(Foo([1]					)					)					).hexdigest()
							_snake_case							:       Optional[Any]												= mda(datasets.utils.py_utils.dumps(Foo([0]					)					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		def 							lowercase							(     self					)   ->   str:


							'''simple docstring'''

							_snake_case							:       Dict												= mda(datasets.utils.py_utils.dumps(Foo([0]					).__call__					)					).hexdigest()
							_snake_case							:       Optional[int]												= mda(datasets.utils.py_utils.dumps(Foo([1]					).__call__					)					).hexdigest()
							_snake_case							:       Optional[int]												= mda(datasets.utils.py_utils.dumps(Foo([0]					).__call__					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		def 							lowercase							(     self					)   ->   Union[str, Any]:


							'''simple docstring'''

							_snake_case							:       List[Any]												= (
							    "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(*__snake_case					):
												if hasattr(args[-3]			,    "encode"					):
																	_snake_case							:       Any												= list(__snake_case					)
																	_snake_case							:       List[str]												= args[-3].encode()  # co_lnotab
																	_snake_case							:       Any												= args[-1_0].encode()  # co_code
												if hasattr(__snake_case			,    "co_posonlyargcount"					):
																	if len(__snake_case					) == 1_6:
																						return CodeType(*__snake_case					)
																	elif len(__snake_case					) == 1_5:
																						return CodeType(args[0]			,    0			,    *args[1:]					)
																	return CodeType(args[0]			,    0			,    0			,    *args[1:]					)
												elif hasattr(__snake_case			,    "co_kwonlyargcount"					):
																	if len(__snake_case					) == 1_6:
																						return CodeType(args[0]			,    *args[2:]					)
																	elif len(__snake_case					) == 1_5:
																						return CodeType(*__snake_case					)
																	return CodeType(args[0]			,    0			,    *args[1:]					)
												if len(__snake_case					) == 1_6:
																	return CodeType(args[0]			,    *args[3:]					)
												elif len(__snake_case					) == 1_5:
																	return CodeType(args[0]			,    *args[2:]					)
												return CodeType(*__snake_case					)

							def create_ipython_func(__snake_case			,    __snake_case					):
												def func():
																	return returned_obj

												_snake_case							:       Optional[int]												= 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"					):
																	_snake_case							:       Tuple												= _create_code_pyaa(
																	    *[getattr(__snake_case			,    __snake_case					) if k != "co_filename" else co_filename for k in code_args_pyaa]					)
												else:
																	_snake_case							:       int												= code.replace(co_filename=__snake_case					)
												return FunctionType(__snake_case			,    func.__globals__			,    func.__name__			,    func.__defaults__			,    func.__closure__					)

							_snake_case							,			_snake_case							:       Any												= "<ipython-input-2-e0383a102aae>", [0]
							_snake_case							:       Any												= mda(datasets.utils.py_utils.dumps(create_ipython_func(__snake_case			,    __snake_case					)					)					).hexdigest()
							_snake_case							,			_snake_case							:       List[str]												= "<ipython-input-2-e0383a102aae>", [1]
							_snake_case							:       Optional[Any]												= mda(datasets.utils.py_utils.dumps(create_ipython_func(__snake_case			,    __snake_case					)					)					).hexdigest()
							_snake_case							,			_snake_case							:       List[str]												= "<ipython-input-5-713f6613acf3>", [0]
							_snake_case							:       List[Any]												= mda(datasets.utils.py_utils.dumps(create_ipython_func(__snake_case			,    __snake_case					)					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)

							_snake_case							,			_snake_case							:       Tuple												= os.path.join(gettempdir()			,    "ipykernel_12345"			,    "321456789.py"					), [0]
							_snake_case							:       List[Any]												= mda(datasets.utils.py_utils.dumps(create_ipython_func(__snake_case			,    __snake_case					)					)					).hexdigest()
							_snake_case							,			_snake_case							:       int												= os.path.join(gettempdir()			,    "ipykernel_12345"			,    "321456789.py"					), [1]
							_snake_case							:       Tuple												= mda(datasets.utils.py_utils.dumps(create_ipython_func(__snake_case			,    __snake_case					)					)					).hexdigest()
							_snake_case							,			_snake_case							:       List[str]												= os.path.join(gettempdir()			,    "ipykernel_12345"			,    "654123987.py"					), [0]
							_snake_case							:       Optional[int]												= mda(datasets.utils.py_utils.dumps(create_ipython_func(__snake_case			,    __snake_case					)					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		def 							lowercase							(     self					)   ->   str:


							'''simple docstring'''

							_snake_case							,			_snake_case							:       int												= [0], [1]

							def func():
												return foo, bar

							_snake_case							:       Optional[int]												= "__main__"

							def globalvars_mocka_side_effect(__snake_case			,    *__snake_case			,    **__snake_case					):
												return {"foo": foo, "bar": bar}

							def globalvars_mocka_side_effect(__snake_case			,    *__snake_case			,    **__snake_case					):
												return {"bar": bar, "foo": foo}

							with patch("dill.detect.globalvars"			,    side_effect=__snake_case					) as globalvars_mocka:
												_snake_case							:       Optional[int]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
												self.assertGreater(globalvars_mocka.call_count			,    0					)
							with patch("dill.detect.globalvars"			,    side_effect=__snake_case					) as globalvars_mocka:
												_snake_case							:       Dict												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
												self.assertGreater(globalvars_mocka.call_count			,    0					)
							self.assertEqual(__snake_case			,    __snake_case					)






class 							_a(     __A     ):







		def 							lowercase							(     self					)   ->   Optional[int]:


							'''simple docstring'''

							_snake_case							:       List[str]												= Hasher.hash("hello"					)
							_snake_case							:       str												= Hasher.hash("hello"					)
							_snake_case							:       Optional[Any]												= Hasher.hash("there"					)
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		def 							lowercase							(     self					)   ->   int:


							'''simple docstring'''

							_snake_case							:       Any												= Hasher.hash(Foo("hello"					)					)
							_snake_case							:       Optional[Any]												= Hasher.hash(Foo("hello"					)					)
							_snake_case							:       Any												= Hasher.hash(Foo("there"					)					)
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		def 							lowercase							(     self					)   ->   str:


							'''simple docstring'''

							_snake_case							:       Optional[Any]												= Hasher()
							for x in ["hello", Foo("hello"					)]:
												hasher.update(__snake_case					)
							_snake_case							:       Union[str, Any]												= hasher.hexdigest()
							_snake_case							:       Optional[Any]												= Hasher()
							for x in ["hello", Foo("hello"					)]:
												hasher.update(__snake_case					)
							_snake_case							:       str												= hasher.hexdigest()
							_snake_case							:       Dict												= Hasher()
							for x in ["there", Foo("there"					)]:
												hasher.update(__snake_case					)
							_snake_case							:       int												= hasher.hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		def 							lowercase							(     self					)   ->   Tuple:


							'''simple docstring'''

							with self.assertRaises(pickle.PicklingError					):
												Hasher.hash(UnpicklableCallable(Foo("hello"					)					)					)







		def 							lowercase							(     self					)   ->   List[str]:


							'''simple docstring'''

							_snake_case							:       List[Any]												= "abc"
							_snake_case							:       List[Any]												= [string, string]  # two strings have the same ids
							_snake_case							:       List[Any]												= [string, string]
							_snake_case							:       int												= json.loads(f"""[\"{string}\", \"{string}\"]"""					)  # two strings have different ids
							self.assertIs(obja[0]			,    __snake_case					)
							self.assertIs(obja[0]			,    obja[1]					)
							self.assertIs(obja[0]			,    __snake_case					)
							self.assertIs(obja[0]			,    obja[1]					)
							self.assertIsNot(obja[0]			,    __snake_case					)
							self.assertIsNot(obja[0]			,    obja[1]					)
							_snake_case							:       List[str]												= Hasher.hash(__snake_case					)
							_snake_case							:       int												= Hasher.hash(__snake_case					)
							_snake_case							:       List[Any]												= Hasher.hash(__snake_case					)
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertEqual(__snake_case			,    __snake_case					)







		@require_tiktoken
		def 							lowercase							(     self					)   ->   List[Any]:


							'''simple docstring'''

							import tiktoken

							_snake_case							:       Tuple												= tiktoken.get_encoding("gpt2"					)
							_snake_case							:       List[Any]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       int												= tiktoken.get_encoding("r50k_base"					)
							_snake_case							:       Any												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Optional[int]												= tiktoken.get_encoding("gpt2"					)
							_snake_case							:       List[str]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		@require_torch
		def 							lowercase							(     self					)   ->   Any:


							'''simple docstring'''

							import torch

							_snake_case							:       Optional[int]												= torch.tensor([1.0]					)
							_snake_case							:       Any												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Tuple												= torch.tensor([2.0]					)
							_snake_case							:       Optional[Any]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Tuple												= torch.tensor([1.0]					)
							_snake_case							:       Optional[Any]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







		@require_spacy
		@require_spacy_model("en_core_web_sm"					)
		@require_spacy_model("fr_core_news_sm"					)
		@pytest.mark.integration
		def 							lowercase							(     self					)   ->   Tuple:


							'''simple docstring'''

							import spacy

							_snake_case							:       Union[str, Any]												= spacy.load("en_core_web_sm"					)
							_snake_case							:       Optional[int]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       str												= spacy.load("fr_core_news_sm"					)
							_snake_case							:       List[str]												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							_snake_case							:       Any												= spacy.load("en_core_web_sm"					)
							_snake_case							:       int												= mda(datasets.utils.py_utils.dumps(__snake_case					)					).hexdigest()
							self.assertEqual(__snake_case			,    __snake_case					)
							self.assertNotEqual(__snake_case			,    __snake_case					)







@pytest.mark.integration
def  A					(				UpperCAmelCase					):
					_snake_case							:       Optional[int]												= tmp_path / "dir1"
					_snake_case							:       Dict												= tmp_path / "dir2"
					dira.mkdir()
					dira.mkdir()
					_snake_case							:       Dict												= "script.py"
					_snake_case							:       List[str]												= dedent(
					    "\n    from datasets.fingerprint import Hasher\n    def foo():\n        pass\n    print(Hasher.hash(foo))\n    "					)
					_snake_case							:       Optional[Any]												= dira / script_filename
					_snake_case							:       Optional[Any]												= dira / script_filename
					with script_patha.open("w"					) as f:
										f.write(UpperCAmelCase					)
					with script_patha.open("w"					) as f:
										f.write(UpperCAmelCase					)
					_snake_case							:       Any												= subprocess.check_output(["python", str(UpperCAmelCase					)]					)
					_snake_case							:       Tuple												= subprocess.check_output(["python", str(UpperCAmelCase					)]					)
					assert fingerprinta == fingerprinta







def  A					(				):
					_snake_case							:       int												= {"a": [0, 1, 2]}
					_snake_case							:       Tuple												= DatasetChild(InMemoryTable.from_pydict(UpperCAmelCase					)					)
					_snake_case							:       int												= 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  A					(				):
					_snake_case							:       Optional[int]												= {"a": [0, 1, 2]}






					class 							_a(     datasets.Dataset     ):







							@fingerprint_transform(inplace=__snake_case					)
							def 							lowercase							(     self			,    __snake_case					)   ->   Union[str, Any]:


												'''simple docstring'''

												return DummyDatasetChild(self.data			,    fingerprint=__snake_case					)






					_snake_case							:       str												= DummyDatasetChild(InMemoryTable.from_pydict(UpperCAmelCase					)					).func()






					class 							_a(     datasets.Dataset     ):







							@fingerprint_transform(inplace=__snake_case			,    version="1.0.0"					)
							def 							lowercase							(     self			,    __snake_case					)   ->   int:


												'''simple docstring'''

												return DummyDatasetChild(self.data			,    fingerprint=__snake_case					)






					_snake_case							:       Any												= DummyDatasetChild(InMemoryTable.from_pydict(UpperCAmelCase					)					).func()






					class 							_a(     datasets.Dataset     ):







							@fingerprint_transform(inplace=__snake_case			,    version="2.0.0"					)
							def 							lowercase							(     self			,    __snake_case					)   ->   List[str]:


												'''simple docstring'''

												return DummyDatasetChild(self.data			,    fingerprint=__snake_case					)






					_snake_case							:       Dict												= DummyDatasetChild(InMemoryTable.from_pydict(UpperCAmelCase					)					).func()

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







def  A					(				):
					# AttributeError: module 'dill._dill' has no attribute 'stack'
					_snake_case							:       Optional[int]												= Hasher()
					hasher.update(lambda UpperCAmelCase					: x					)






from typing import TYPE_CHECKING

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


__lowerCAmelCase			:Optional[int]	 =     {
    'configuration_mobilenet_v1': [
        'MOBILENET_V1_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'MobileNetV1Config',
        'MobileNetV1OnnxConfig',
    ],
}

try:
							if not is_vision_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__lowerCAmelCase			:Dict	 =     ['MobileNetV1FeatureExtractor']
							__lowerCAmelCase			:List[Any]	 =     ['MobileNetV1ImageProcessor']

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__lowerCAmelCase			:Optional[int]	 =     [
							    'MOBILENET_V1_PRETRAINED_MODEL_ARCHIVE_LIST',
							    'MobileNetV1ForImageClassification',
							    'MobileNetV1Model',
							    'MobileNetV1PreTrainedModel',
							    'load_tf_weights_in_mobilenet_v1',
							]


if TYPE_CHECKING:
							from .configuration_mobilenet_va import (
							    MOBILENET_V1_PRETRAINED_CONFIG_ARCHIVE_MAP,
							    MobileNetVaConfig,
							    MobileNetVaOnnxConfig,
							)

							try:
														if not is_vision_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .feature_extraction_mobilenet_va import MobileNetVaFeatureExtractor
														from .image_processing_mobilenet_va import MobileNetVaImageProcessor

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_mobilenet_va import (
														    MOBILENET_V1_PRETRAINED_MODEL_ARCHIVE_LIST,
														    MobileNetVaForImageClassification,
														    MobileNetVaModel,
														    MobileNetVaPreTrainedModel,
														    load_tf_weights_in_mobilenet_va,
														)


else:
							import sys

							__lowerCAmelCase			:Optional[int]	 =     _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)