





'''simple docstring'''

import bza
import gzip
import lzma
import os
import shutil
import struct
import tarfile
import warnings
import zipfile
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Dict, List, Optional, Type, Union

from .. import config
from .filelock import FileLock
from .logging import get_logger


lowercase__						:      List[str]	=    get_logger(__name__)
class     __lowerCAmelCase					:






       """simple docstring"""





       def __init__(							self       :		Union[str, Any]	,			lowerCAmelCase__       :		Optional[str] = None					)   ->					Any:

            '''simple docstring'''




            _UpperCamelCase       =	(
                os.path.join(lowerCAmelCase__	,			config.EXTRACTED_DATASETS_DIR					) if cache_dir else config.EXTRACTED_DATASETS_PATH
            )
            _UpperCamelCase       =	Extractor





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

            '''simple docstring'''




            from .file_utils import hash_url_to_filename

            # Path where we extract compressed archives
            # We extract in the cache dir, and get the extracted path name by hashing the original path"
            _UpperCamelCase       =	os.path.abspath(lowerCAmelCase__					)
            return os.path.join(self.extract_dir	,			hash_url_to_filename(lowerCAmelCase__					)					)





       def snake_case__						(							self       :		Optional[Any]	,			lowerCAmelCase__       :		str	,			lowerCAmelCase__       :		bool					)   ->					bool:

            '''simple docstring'''




            return force_extract or (
                not os.path.isfile(lowerCAmelCase__					) and not (os.path.isdir(lowerCAmelCase__					) and os.listdir(lowerCAmelCase__					))
            )







       def snake_case__						(							self       :		Union[str, Any]	,			lowerCAmelCase__       :		str	,			lowerCAmelCase__       :		bool = False					)   ->					str:

            '''simple docstring'''




            _UpperCamelCase       =	self.extractor.infer_extractor_format(lowerCAmelCase__					)
            if not extractor_format:
                 return input_path
            _UpperCamelCase       =	self._get_output_path(lowerCAmelCase__					)
            if self._do_extract(lowerCAmelCase__	,			lowerCAmelCase__					):
                 self.extractor.extract(lowerCAmelCase__	,			lowerCAmelCase__	,			lowerCAmelCase__					)
            return output_path

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""





       @classmethod
       @abstractmethod
       def snake_case__						(							cls       :		List[Any]	,			lowerCAmelCase__       :		Union[Path, str]	,			**lowerCAmelCase__       :		Union[str, Any]					)   ->					bool:

            '''simple docstring'''




            ...







       @staticmethod
       @abstractmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            ...

class     __lowerCAmelCase					(   __magic_name__						,						__magic_name__			):






       """simple docstring"""
       _snake_case     :					List[bytes]						    =   []





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		int					)   ->					List[str]:

            '''simple docstring'''




            with open(lowerCAmelCase__	,			'''rb'''					) as f:
                 return f.read(lowerCAmelCase__					)







       @classmethod
       def snake_case__						(							cls       :		List[str]	,			lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		bytes = b""					)   ->					bool:

            '''simple docstring'''




            if not magic_number:
                 _UpperCamelCase       =	max(len(lowerCAmelCase__					) for cls_magic_number in cls.magic_numbers					)
                 try:
                      _UpperCamelCase       =	cls.read_magic_number(lowerCAmelCase__	,			lowerCAmelCase__					)
                 except OSError:
                      return False
            return any(magic_number.startswith(lowerCAmelCase__					) for cls_magic_number in cls.magic_numbers					)

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""





       @classmethod
       def snake_case__						(							cls       :		Any	,			lowerCAmelCase__       :		Union[Path, str]	,			**lowerCAmelCase__       :		Dict					)   ->					bool:

            '''simple docstring'''




            return tarfile.is_tarfile(lowerCAmelCase__					)





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Any	,			lowerCAmelCase__       :		Optional[int]					)   ->					str:

            '''simple docstring'''




            def resolved(lowerCAmelCase__       :		str					) -> str:
                 return os.path.realpath(os.path.abspath(lowerCAmelCase__					)					)

            def badpath(lowerCAmelCase__       :		str	,			lowerCAmelCase__       :		str					) -> bool:
                 # joinpath will ignore base if path is absolute
                 return not resolved(os.path.join(lowerCAmelCase__	,			lowerCAmelCase__					)					).startswith(lowerCAmelCase__					)

            def badlink(lowerCAmelCase__       :		Tuple	,			lowerCAmelCase__       :		str					) -> bool:
                 # Links are interpreted relative to the directory containing the link
                 _UpperCamelCase       =	resolved(os.path.join(lowerCAmelCase__	,			os.path.dirname(info.name					)					)					)
                 return badpath(info.linkname	,			base=lowerCAmelCase__					)

            _UpperCamelCase       =	resolved(lowerCAmelCase__					)

            for finfo in members:
                 if badpath(finfo.name	,			lowerCAmelCase__					):
                      logger.error(f"""Extraction of {finfo.name} is blocked (illegal path)"""					)
                 elif finfo.issym() and badlink(lowerCAmelCase__	,			lowerCAmelCase__					):
                      logger.error(f"""Extraction of {finfo.name} is blocked: Symlink to {finfo.linkname}"""					)
                 elif finfo.islnk() and badlink(lowerCAmelCase__	,			lowerCAmelCase__					):
                      logger.error(f"""Extraction of {finfo.name} is blocked: Hard link to {finfo.linkname}"""					)
                 else:
                      yield finfo







       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            os.makedirs(lowerCAmelCase__	,			exist_ok=lowerCAmelCase__					)
            _UpperCamelCase       =	tarfile.open(lowerCAmelCase__					)
            tar_file.extractall(lowerCAmelCase__	,			members=TarExtractor.safemembers(lowerCAmelCase__	,			lowerCAmelCase__					)					)
            tar_file.close()

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					List[str]						    =   [b'\x1F\x8B']





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            with gzip.open(lowerCAmelCase__	,			'''rb'''					) as gzip_file:
                 with open(lowerCAmelCase__	,			'''wb'''					) as extracted_file:
                      shutil.copyfileobj(lowerCAmelCase__	,			lowerCAmelCase__					)

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					Dict						    =   [
           b'PK\x03\x04',
           b'PK\x05\x06',  # empty archive
           b'PK\x07\x08',  # spanned archive
       ]





       @classmethod
       def snake_case__						(							cls       :		str	,			lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		bytes = b""					)   ->					bool:

            '''simple docstring'''




            if super().is_extractable(lowerCAmelCase__	,			magic_number=lowerCAmelCase__					):
                 return True
            try:
                 # Alternative version of zipfile.is_zipfile that has less false positives, but misses executable zip archives.
                 # From: https://github.com/python/cpython/pull/5053
                 from zipfile import (
                     _CD_SIGNATURE,
                     _ECD_DISK_NUMBER,
                     _ECD_DISK_START,
                     _ECD_ENTRIES_TOTAL,
                     _ECD_OFFSET,
                     _ECD_SIZE,
                     _EndRecData,
                     sizeCentralDir,
                     stringCentralDir,
                     structCentralDir,
                 )

                 with open(lowerCAmelCase__	,			'''rb'''					) as fp:
                      _UpperCamelCase       =	_EndRecData(lowerCAmelCase__					)
                      if endrec:
                           if endrec[_ECD_ENTRIES_TOTAL] == 0 and endrec[_ECD_SIZE] == 0 and endrec[_ECD_OFFSET] == 0:
                                return True  # Empty zipfiles are still zipfiles
                           elif endrec[_ECD_DISK_NUMBER] == endrec[_ECD_DISK_START]:
                                fp.seek(endrec[_ECD_OFFSET]					)  # Central directory is on the same disk
                                if fp.tell() == endrec[_ECD_OFFSET] and endrec[_ECD_SIZE] >= sizeCentralDir:
                                     _UpperCamelCase       =	fp.read(lowerCAmelCase__					)  # CD is where we expect it to be
                                     if len(lowerCAmelCase__					) == sizeCentralDir:
                                          _UpperCamelCase       =	struct.unpack(lowerCAmelCase__	,			lowerCAmelCase__					)  # CD is the right size
                                          if centdir[_CD_SIGNATURE] == stringCentralDir:
                                               return True  # First central directory entry  has correct magic number
                 return False
            except Exception:  # catch all errors in case future python versions change the zipfile internals
                 return False







       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            os.makedirs(lowerCAmelCase__	,			exist_ok=lowerCAmelCase__					)
            with zipfile.ZipFile(lowerCAmelCase__	,			'''r'''					) as zip_file:
                 zip_file.extractall(lowerCAmelCase__					)
                 zip_file.close()

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					Optional[Any]						    =   [b'\xFD\x37\x7A\x58\x5A\x00']





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            with lzma.open(lowerCAmelCase__					) as compressed_file:
                 with open(lowerCAmelCase__	,			'''wb'''					) as extracted_file:
                      shutil.copyfileobj(lowerCAmelCase__	,			lowerCAmelCase__					)

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					Any						    =   [b'Rar!\x1a\x07\x00', b'Rar!\x1a\x07\x01\x00']  # RAR_ID  # RAR5_ID





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            if not config.RARFILE_AVAILABLE:
                 raise ImportError('''Please pip install rarfile'''					)
            import rarfile

            os.makedirs(lowerCAmelCase__	,			exist_ok=lowerCAmelCase__					)
            _UpperCamelCase       =	rarfile.RarFile(lowerCAmelCase__					)
            rf.extractall(lowerCAmelCase__					)
            rf.close()

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					Optional[Any]						    =   [b'\x28\xb5\x2F\xFD']





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            if not config.ZSTANDARD_AVAILABLE:
                 raise ImportError('''Please pip install zstandard'''					)
            import zstandard as zstd

            _UpperCamelCase       =	zstd.ZstdDecompressor()
            with open(lowerCAmelCase__	,			'''rb'''					) as ifh, open(lowerCAmelCase__	,			'''wb'''					) as ofh:
                 dctx.copy_stream(lowerCAmelCase__	,			lowerCAmelCase__					)

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					Union[str, Any]						    =   [b'\x42\x5A\x68']





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            with bza.open(lowerCAmelCase__	,			'''rb'''					) as compressed_file:
                 with open(lowerCAmelCase__	,			'''wb'''					) as extracted_file:
                      shutil.copyfileobj(lowerCAmelCase__	,			lowerCAmelCase__					)

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					Dict						    =   [b'\x37\x7A\xBC\xAF\x27\x1C']





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            if not config.PY7ZR_AVAILABLE:
                 raise ImportError('''Please pip install py7zr'''					)
            import pyazr

            os.makedirs(lowerCAmelCase__	,			exist_ok=lowerCAmelCase__					)
            with pyazr.SevenZipFile(lowerCAmelCase__	,			'''r'''					) as archive:
                 archive.extractall(lowerCAmelCase__					)

class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					Tuple						    =   [b'\x04\x22\x4D\x18']





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					None:

            '''simple docstring'''




            if not config.LZ4_AVAILABLE:
                 raise ImportError('''Please pip install lz4'''					)
            import lza.frame

            with lza.frame.open(lowerCAmelCase__	,			'''rb'''					) as compressed_file:
                 with open(lowerCAmelCase__	,			'''wb'''					) as extracted_file:
                      shutil.copyfileobj(lowerCAmelCase__	,			lowerCAmelCase__					)

class     __lowerCAmelCase					:






       """simple docstring"""
       _snake_case     :					Dict[str, Type[BaseExtractor]]						    =   {
           "tar": TarExtractor,
           "gzip": GzipExtractor,
           "zip": ZipExtractor,
           "xz": XzExtractor,
           "rar": RarExtractor,
           "zstd": ZstdExtractor,
           "bz2": BzipaExtractor,
           "7z": SevenZipExtractor,  # <Added version="2.4.0"/>
           "lz4": LzaExtractor,  # <Added version="2.4.0"/>
       }





       @classmethod
       def snake_case__						(							cls       :		Union[str, Any]					)   ->					List[Any]:

            '''simple docstring'''




            return max(
                len(lowerCAmelCase__					)
                for extractor in cls.extractors.values()
                if issubclass(lowerCAmelCase__	,			lowerCAmelCase__					)
                for extractor_magic_number in extractor.magic_numbers					)





       @staticmethod
       def snake_case__						(							lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		int					)   ->					Dict:

            '''simple docstring'''




            try:
                 return MagicNumberBaseExtractor.read_magic_number(lowerCAmelCase__	,			magic_number_length=lowerCAmelCase__					)
            except OSError:
                 return b""





       @classmethod
       def snake_case__						(							cls       :		Union[str, Any]	,			lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		bool = False					)   ->					bool:

            '''simple docstring'''




            warnings.warn(
                '''Method \'is_extractable\' was deprecated in version 2.4.0 and will be removed in 3.0.0. '''
                '''Use \'infer_extractor_format\' instead.'''	,			category=lowerCAmelCase__	,			)
            _UpperCamelCase       =	cls.infer_extractor_format(lowerCAmelCase__					)
            if extractor_format:
                 return True if not return_extractor else (True, cls.extractors[extractor_format])
            return False if not return_extractor else (False, None)





       @classmethod
       def snake_case__						(							cls       :		Tuple	,			lowerCAmelCase__       :		Union[Path, str]					)   ->					str:  # <Added version="2.4.0"/>

            '''simple docstring'''




            _UpperCamelCase       =	cls._get_magic_number_max_length()
            _UpperCamelCase       =	cls._read_magic_number(lowerCAmelCase__	,			lowerCAmelCase__					)
            for extractor_format, extractor in cls.extractors.items():
                 if extractor.is_extractable(lowerCAmelCase__	,			magic_number=lowerCAmelCase__					):
                      return extractor_format







       @classmethod
       def snake_case__						(							cls       :		Optional[int]	,			lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Union[Path, str]	,			lowerCAmelCase__       :		Optional[str] = None	,			lowerCAmelCase__       :		Optional[BaseExtractor] = "deprecated"	,			)   ->					None:

            '''simple docstring'''




            os.makedirs(os.path.dirname(lowerCAmelCase__					)	,			exist_ok=lowerCAmelCase__					)
            # Prevent parallel extractions
            _UpperCamelCase       =	str(Path(lowerCAmelCase__					).with_suffix('''.lock'''					)					)
            with FileLock(lowerCAmelCase__					):
                 shutil.rmtree(lowerCAmelCase__	,			ignore_errors=lowerCAmelCase__					)
                 if extractor_format or extractor != "deprecated":
                      if extractor != "deprecated" or not isinstance(lowerCAmelCase__	,			lowerCAmelCase__					):  # passed as positional arg
                           warnings.warn(
                               '''Parameter \'extractor\' was deprecated in version 2.4.0 and will be removed in 3.0.0. '''
                               '''Use \'extractor_format\' instead.'''	,			category=lowerCAmelCase__	,			)
                           _UpperCamelCase       =	extractor if extractor != '''deprecated''' else extractor_format
                      else:
                           _UpperCamelCase       =	cls.extractors[extractor_format]
                      return extractor.extract(lowerCAmelCase__	,			lowerCAmelCase__					)
                 else:
                      warnings.warn(
                          '''Parameter \'extractor_format\' was made required in version 2.4.0 and not passing it will raise an '''
                          '''exception in 3.0.0.'''	,			category=lowerCAmelCase__	,			)
                      for extractor in cls.extractors.values():
                           if extractor.is_extractable(lowerCAmelCase__					):
                                return extractor.extract(lowerCAmelCase__	,			lowerCAmelCase__					)










'''simple docstring'''

import unittest

import numpy as np

from transformers import RobertaConfig, is_flax_available
from transformers.testing_utils import require_flax, slow

from ...test_modeling_flax_common import FlaxModelTesterMixin, floats_tensor, ids_tensor, random_attention_mask


if is_flax_available():
   from transformers.models.roberta.modeling_flax_roberta import (
       FlaxRobertaForCausalLM,
       FlaxRobertaForMaskedLM,
       FlaxRobertaForMultipleChoice,
       FlaxRobertaForQuestionAnswering,
       FlaxRobertaForSequenceClassification,
       FlaxRobertaForTokenClassification,
       FlaxRobertaModel,
   )
class     __lowerCAmelCase					(   unittest.TestCase			):






       """simple docstring"""





       def __init__(							self       :		Tuple	,			lowerCAmelCase__       :		Tuple	,			lowerCAmelCase__       :		Union[str, Any]=13	,			lowerCAmelCase__       :		Union[str, Any]=7	,			lowerCAmelCase__       :		str=True	,			lowerCAmelCase__       :		Tuple=True	,			lowerCAmelCase__       :		Dict=True	,			lowerCAmelCase__       :		Dict=True	,			lowerCAmelCase__       :		int=99	,			lowerCAmelCase__       :		str=32	,			lowerCAmelCase__       :		str=5	,			lowerCAmelCase__       :		str=4	,			lowerCAmelCase__       :		str=37	,			lowerCAmelCase__       :		int="gelu"	,			lowerCAmelCase__       :		Optional[Any]=0.1	,			lowerCAmelCase__       :		int=0.1	,			lowerCAmelCase__       :		Optional[int]=512	,			lowerCAmelCase__       :		Dict=16	,			lowerCAmelCase__       :		List[Any]=2	,			lowerCAmelCase__       :		Any=0.02	,			lowerCAmelCase__       :		Union[str, Any]=4	,			)   ->					Dict:

            '''simple docstring'''




            _UpperCamelCase       =	parent
            _UpperCamelCase       =	batch_size
            _UpperCamelCase       =	seq_length
            _UpperCamelCase       =	is_training
            _UpperCamelCase       =	use_attention_mask
            _UpperCamelCase       =	use_token_type_ids
            _UpperCamelCase       =	use_labels
            _UpperCamelCase       =	vocab_size
            _UpperCamelCase       =	hidden_size
            _UpperCamelCase       =	num_hidden_layers
            _UpperCamelCase       =	num_attention_heads
            _UpperCamelCase       =	intermediate_size
            _UpperCamelCase       =	hidden_act
            _UpperCamelCase       =	hidden_dropout_prob
            _UpperCamelCase       =	attention_probs_dropout_prob
            _UpperCamelCase       =	max_position_embeddings
            _UpperCamelCase       =	type_vocab_size
            _UpperCamelCase       =	type_sequence_label_size
            _UpperCamelCase       =	initializer_range
            _UpperCamelCase       =	num_choices





       def snake_case__						(							self       :		Optional[int]					)   ->					Optional[Any]:

            '''simple docstring'''




            _UpperCamelCase       =	ids_tensor([self.batch_size, self.seq_length]	,			self.vocab_size					)

            _UpperCamelCase       =	None
            if self.use_attention_mask:
                 _UpperCamelCase       =	random_attention_mask([self.batch_size, self.seq_length]					)

            _UpperCamelCase       =	None
            if self.use_token_type_ids:
                 _UpperCamelCase       =	ids_tensor([self.batch_size, self.seq_length]	,			self.type_vocab_size					)

            _UpperCamelCase       =	RobertaConfig(
                vocab_size=self.vocab_size	,			hidden_size=self.hidden_size	,			num_hidden_layers=self.num_hidden_layers	,			num_attention_heads=self.num_attention_heads	,			intermediate_size=self.intermediate_size	,			hidden_act=self.hidden_act	,			hidden_dropout_prob=self.hidden_dropout_prob	,			attention_probs_dropout_prob=self.attention_probs_dropout_prob	,			max_position_embeddings=self.max_position_embeddings	,			type_vocab_size=self.type_vocab_size	,			is_decoder=lowerCAmelCase__	,			initializer_range=self.initializer_range	,			)

            return config, input_ids, token_type_ids, attention_mask





       def snake_case__						(							self       :		Optional[int]					)   ->					Any:

            '''simple docstring'''




            _UpperCamelCase       =	self.prepare_config_and_inputs()
            _UpperCamelCase   ,    _UpperCamelCase   ,    _UpperCamelCase   ,    _UpperCamelCase       =	config_and_inputs
            _UpperCamelCase       =	{'''input_ids''': input_ids, '''token_type_ids''': token_type_ids, '''attention_mask''': attention_mask}
            return config, inputs_dict







       def snake_case__						(							self       :		List[str]					)   ->					Any:

            '''simple docstring'''




            _UpperCamelCase       =	self.prepare_config_and_inputs()
            _UpperCamelCase   ,    _UpperCamelCase   ,    _UpperCamelCase   ,    _UpperCamelCase       =	config_and_inputs

            _UpperCamelCase       =	True
            _UpperCamelCase       =	floats_tensor([self.batch_size, self.seq_length, self.hidden_size]					)
            _UpperCamelCase       =	ids_tensor([self.batch_size, self.seq_length]	,			vocab_size=2					)

            return (
                config,
                input_ids,
                token_type_ids,
                encoder_hidden_states,
                encoder_attention_mask,
            )

@require_flax
class     __lowerCAmelCase					(   __magic_name__						,						unittest.TestCase			):






       """simple docstring"""
       _snake_case     :					Optional[int]						    =   True

       _snake_case     :					Optional[Any]						    =   (
           (
               FlaxRobertaModel,
               FlaxRobertaForCausalLM,
               FlaxRobertaForMaskedLM,
               FlaxRobertaForSequenceClassification,
               FlaxRobertaForTokenClassification,
               FlaxRobertaForMultipleChoice,
               FlaxRobertaForQuestionAnswering,
           )
           if is_flax_available()
           else ()
       )





       def snake_case__						(							self       :		Dict					)   ->					List[Any]:

            '''simple docstring'''




            _UpperCamelCase       =	FlaxRobertaModelTester(self					)







       @slow
       def snake_case__						(							self       :		List[str]					)   ->					Union[str, Any]:

            '''simple docstring'''




            for model_class_name in self.all_model_classes:
                 _UpperCamelCase       =	model_class_name.from_pretrained('''roberta-base'''	,			from_pt=lowerCAmelCase__					)
                 _UpperCamelCase       =	model(np.ones((1, 1)					)					)
                 self.assertIsNotNone(lowerCAmelCase__					)



