






'''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    _snake_case   :

					"""simple docstring"""





					def __init__(     self   , UpperCAmelCase__     )      ->	int:
										a_									=   foo




					def __call__(     self     )      ->	str:
										return self.foo



class    _snake_case   (				datasets.Dataset					):

					"""simple docstring"""





					@fingerprint_transform(inplace=UpperCAmelCase__     )
					def  __SCREAMING_SNAKE_CASE (     self   , UpperCAmelCase__   , *UpperCAmelCase__   , **UpperCAmelCase__     )      ->	Optional[Any]:
										return DatasetChild(self.data   , fingerprint=UpperCAmelCase__     )




					@fingerprint_transform(inplace=UpperCAmelCase__     )
					def  __SCREAMING_SNAKE_CASE (     self   , UpperCAmelCase__   , *UpperCAmelCase__   , **UpperCAmelCase__     )      ->	List[Any]:
										return DatasetChild(self.data   , fingerprint=UpperCAmelCase__     )



class    _snake_case   :

					"""simple docstring"""





					def __init__(     self   , UpperCAmelCase__     )      ->	List[Any]:
										a_									=   callable




					def __call__(     self   , *UpperCAmelCase__   , **UpperCAmelCase__     )      ->	Dict:







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




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



class    _snake_case   (				lowercase_					):

					"""simple docstring"""





					@require_transformers
					@pytest.mark.integration
					def  __SCREAMING_SNAKE_CASE (     self     )      ->	List[Any]:
										from transformers import AutoTokenizer

										def encode(UpperCAmelCase__     ):
															return tokenizer(UpperCAmelCase__     )

										# TODO: add hash consistency tests across sessions
										a_									=   AutoTokenizer.from_pretrained('bert-base-uncased'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(lambda UpperCAmelCase__     : tokenizer(UpperCAmelCase__     )     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   AutoTokenizer.from_pretrained('bert-base-cased'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(lambda UpperCAmelCase__     : tokenizer(UpperCAmelCase__     )     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   AutoTokenizer.from_pretrained('bert-base-uncased'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(lambda UpperCAmelCase__     : tokenizer(UpperCAmelCase__     )     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )




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

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




					@require_regex
					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Optional[int]:
										import regex

										a_									=   regex.Regex('foo'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   regex.Regex('bar'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   regex.Regex('foo'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )



class    _snake_case   (				lowercase_					):

					"""simple docstring"""





					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Tuple:







										def func():
															return foo

										a_									=   [0]
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   [1]
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   [0]
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Any:







										def func():
															pass

										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()

										def func():
															pass

										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Optional[Any]:
										a_									=   mda(datasets.utils.py_utils.dumps(Foo([0]     )     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(Foo([1]     )     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(Foo([0]     )     )     ).hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Tuple:
										a_									=   mda(datasets.utils.py_utils.dumps(Foo([0]     ).__call__     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(Foo([1]     ).__call__     )     ).hexdigest()
										a_									=   mda(datasets.utils.py_utils.dumps(Foo([0]     ).__call__     )     ).hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Optional[Any]:
										a_									=   (
										    '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(*UpperCAmelCase__     ):
															if hasattr(args[-3]   , 'encode'     ):
																				a_									=   list(UpperCAmelCase__     )
																				a_									=   args[-3].encode()  # co_lnotab
																				a_									=   args[-10].encode()  # co_code
															if hasattr(UpperCAmelCase__   , 'co_posonlyargcount'     ):
																				if len(UpperCAmelCase__     ) == 16:
																									return CodeType(*UpperCAmelCase__     )
																				elif len(UpperCAmelCase__     ) == 15:
																									return CodeType(args[0]   , 0   , *args[1:]     )
																				return CodeType(args[0]   , 0   , 0   , *args[1:]     )
															elif hasattr(UpperCAmelCase__   , 'co_kwonlyargcount'     ):
																				if len(UpperCAmelCase__     ) == 16:
																									return CodeType(args[0]   , *args[2:]     )
																				elif len(UpperCAmelCase__     ) == 15:
																									return CodeType(*UpperCAmelCase__     )
																				return CodeType(args[0]   , 0   , *args[1:]     )
															if len(UpperCAmelCase__     ) == 16:
																				return CodeType(args[0]   , *args[3:]     )
															elif len(UpperCAmelCase__     ) == 15:
																				return CodeType(args[0]   , *args[2:]     )
															return CodeType(*UpperCAmelCase__     )

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

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

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

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




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Dict:
										a_							,					a_									=   [0], [1]

										def func():
															return foo, bar

										a_									=   '__main__'

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

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

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



class    _snake_case   (				lowercase_					):

					"""simple docstring"""





					def  __SCREAMING_SNAKE_CASE (     self     )      ->	str:
										a_									=   Hasher.hash('hello'     )
										a_									=   Hasher.hash('hello'     )
										a_									=   Hasher.hash('there'     )
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Any:
										a_									=   Hasher.hash(Foo('hello'     )     )
										a_									=   Hasher.hash(Foo('hello'     )     )
										a_									=   Hasher.hash(Foo('there'     )     )
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Any:
										a_									=   Hasher()
										for x in ["hello", Foo('hello'     )]:
															hasher.update(UpperCAmelCase__     )
										a_									=   hasher.hexdigest()
										a_									=   Hasher()
										for x in ["hello", Foo('hello'     )]:
															hasher.update(UpperCAmelCase__     )
										a_									=   hasher.hexdigest()
										a_									=   Hasher()
										for x in ["there", Foo('there'     )]:
															hasher.update(UpperCAmelCase__     )
										a_									=   hasher.hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	List[Any]:







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




					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Union[str, Any]:
										a_									=   'abc'
										a_									=   [string, string]  # two strings have the same ids
										a_									=   [string, string]
										a_									=   json.loads(F'''[\"{string}\", \"{string}\"]'''     )  # two strings have different ids
										self.assertIs(obja[0]   , UpperCAmelCase__     )
										self.assertIs(obja[0]   , obja[1]     )
										self.assertIs(obja[0]   , UpperCAmelCase__     )
										self.assertIs(obja[0]   , obja[1]     )
										self.assertIsNot(obja[0]   , UpperCAmelCase__     )
										self.assertIsNot(obja[0]   , obja[1]     )
										a_									=   Hasher.hash(UpperCAmelCase__     )
										a_									=   Hasher.hash(UpperCAmelCase__     )
										a_									=   Hasher.hash(UpperCAmelCase__     )
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					@require_tiktoken
					def  __SCREAMING_SNAKE_CASE (     self     )      ->	str:
										import tiktoken

										a_									=   tiktoken.get_encoding('gpt2'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   tiktoken.get_encoding('r50k_base'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   tiktoken.get_encoding('gpt2'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )




					@require_torch
					def  __SCREAMING_SNAKE_CASE (     self     )      ->	Optional[int]:
										import torch

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




					@require_spacy
					@require_spacy_model('en_core_web_sm'     )
					@require_spacy_model('fr_core_news_sm'     )
					@pytest.mark.integration
					def  __SCREAMING_SNAKE_CASE (     self     )      ->	List[Any]:
										import spacy

										a_									=   spacy.load('en_core_web_sm'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   spacy.load('fr_core_news_sm'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										a_									=   spacy.load('en_core_web_sm'     )
										a_									=   mda(datasets.utils.py_utils.dumps(UpperCAmelCase__     )     ).hexdigest()
										self.assertEqual(UpperCAmelCase__   , UpperCAmelCase__     )
										self.assertNotEqual(UpperCAmelCase__   , UpperCAmelCase__     )



@pytest.mark.integration
def 							a	(   _UpperCAmelCase )				->				List[Any]:






					"""simple docstring"""







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

def 							a	(   )				->				Tuple:






					"""simple docstring"""







					a_									=   {'a': [0, 1, 2]}
					a_									=   DatasetChild(InMemoryTable.from_pydict(_UpperCAmelCase ) )
					a_									=   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	(   )				->				Dict:






					"""simple docstring"""







					a_									=   {'a': [0, 1, 2]}


					class    _snake_case   (				datasets.Dataset					):

										"""simple docstring"""





										@fingerprint_transform(inplace=UpperCAmelCase__     )
										def  __SCREAMING_SNAKE_CASE (     self   , UpperCAmelCase__     )      ->	Dict:
															return DummyDatasetChild(self.data   , fingerprint=UpperCAmelCase__     )



					a_									=   DummyDatasetChild(InMemoryTable.from_pydict(_UpperCAmelCase ) ).func()


					class    _snake_case   (				datasets.Dataset					):

										"""simple docstring"""





										@fingerprint_transform(inplace=UpperCAmelCase__   , version='1.0.0'     )
										def  __SCREAMING_SNAKE_CASE (     self   , UpperCAmelCase__     )      ->	List[Any]:
															return DummyDatasetChild(self.data   , fingerprint=UpperCAmelCase__     )



					a_									=   DummyDatasetChild(InMemoryTable.from_pydict(_UpperCAmelCase ) ).func()


					class    _snake_case   (				datasets.Dataset					):

										"""simple docstring"""





										@fingerprint_transform(inplace=UpperCAmelCase__   , version='2.0.0'     )
										def  __SCREAMING_SNAKE_CASE (     self   , UpperCAmelCase__     )      ->	Union[str, Any]:
															return DummyDatasetChild(self.data   , fingerprint=UpperCAmelCase__     )



					a_									=   DummyDatasetChild(InMemoryTable.from_pydict(_UpperCAmelCase ) ).func()

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





def 							a	(   )				->				List[Any]:






					"""simple docstring"""







					a_									=   Hasher()
					hasher.update(lambda _UpperCAmelCase : x )









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

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


__lowerCAmelCase							={"configuration_regnet": ["REGNET_PRETRAINED_CONFIG_ARCHIVE_MAP", "RegNetConfig"]}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__lowerCAmelCase							=[
						    "REGNET_PRETRAINED_MODEL_ARCHIVE_LIST",
						    "RegNetForImageClassification",
						    "RegNetModel",
						    "RegNetPreTrainedModel",
						]

try:
						if not is_tf_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__lowerCAmelCase							=[
						    "TF_REGNET_PRETRAINED_MODEL_ARCHIVE_LIST",
						    "TFRegNetForImageClassification",
						    "TFRegNetModel",
						    "TFRegNetPreTrainedModel",
						]

try:
						if not is_flax_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__lowerCAmelCase							=[
						    "FlaxRegNetForImageClassification",
						    "FlaxRegNetModel",
						    "FlaxRegNetPreTrainedModel",
						]


if TYPE_CHECKING:
						from .configuration_regnet import REGNET_PRETRAINED_CONFIG_ARCHIVE_MAP, RegNetConfig

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_regnet import (
												    REGNET_PRETRAINED_MODEL_ARCHIVE_LIST,
												    RegNetForImageClassification,
												    RegNetModel,
												    RegNetPreTrainedModel,
												)

						try:
												if not is_tf_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_tf_regnet import (
												    TF_REGNET_PRETRAINED_MODEL_ARCHIVE_LIST,
												    TFRegNetForImageClassification,
												    TFRegNetModel,
												    TFRegNetPreTrainedModel,
												)

						try:
												if not is_flax_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_flax_regnet import (
												    FlaxRegNetForImageClassification,
												    FlaxRegNetModel,
												    FlaxRegNetPreTrainedModel,
												)


else:
						import sys

						__lowerCAmelCase							=_LazyModule(__name__, globals()["__file__"], _import_structure)

