from ..utils import DummyObject, requires_backends
class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    Union[str, Any]     ,       **lowercase__   :    str):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    str     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    int     ,       **lowercase__   :    Union[str, Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Tuple     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    str):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    Any):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[str]     ,       *lowercase__   :    Union[str, Any]     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Optional[int]     ,       **lowercase__   :    Optional[int]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    Union[str, Any]     ,       **lowercase__   :    Dict):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    List[str]     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[Any]     ,       *lowercase__   :    List[str]     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[int]     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    Optional[int]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    int     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    Union[str, Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    List[str]     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[int]     ,       *lowercase__   :    Optional[int]     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Tuple     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    str     ,       *lowercase__   :    int     ,       **lowercase__   :    Union[str, Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    Any     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    int     ,       *lowercase__   :    Dict     ,       **lowercase__   :    Union[str, Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    Union[str, Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    str     ,       *lowercase__   :    Dict     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[int]     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    int     ,       *lowercase__   :    int     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    str     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Tuple     ,       *lowercase__   :    int     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    Dict     ,       **lowercase__   :    Optional[int]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Tuple     ,       *lowercase__   :    Union[str, Any]     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    str     ,       **lowercase__   :    str):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[str]     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    int     ,       *lowercase__   :    Dict     ,       **lowercase__   :    Any):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    Dict):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    Optional[int]     ,       **lowercase__   :    Any):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Union[str, Any]     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    str     ,       **lowercase__   :    Dict):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    List[str]     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[str]     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    Dict):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Tuple     ,       *lowercase__   :    str     ,       **lowercase__   :    Dict):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    int     ,       *lowercase__   :    int     ,       **lowercase__   :    List[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[Any]     ,       *lowercase__   :    Optional[int]     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    int     ,       **lowercase__   :    List[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    str     ,       *lowercase__   :    int     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[Any]     ,       *lowercase__   :    Optional[int]     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    str     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[str]     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    int     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[str]     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    int     ,       *lowercase__   :    str     ,       **lowercase__   :    Dict):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    Union[str, Any]     ,       **lowercase__   :    Any):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[int]     ,       *lowercase__   :    str     ,       **lowercase__   :    List[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    Any     ,       **lowercase__   :    Dict):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    str     ,       *lowercase__   :    List[str]     ,       **lowercase__   :    Dict):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Union[str, Any]     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    str):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[str]     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[Any]     ,       *lowercase__   :    Optional[Any]     ,       **lowercase__   :    Any):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Dict     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[Any]     ,       *lowercase__   :    Optional[int]     ,       **lowercase__   :    Union[str, Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[Any]     ,       *lowercase__   :    List[str]     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[Any]     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    Union[str, Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    str     ,       *lowercase__   :    Tuple     ,       **lowercase__   :    Optional[int]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Dict     ,       *lowercase__   :    Optional[int]     ,       **lowercase__   :    Optional[int]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Optional[int]     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    Any):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    str     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Union[str, Any]     ,       **lowercase__   :    Optional[int]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    int     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    Optional[Any]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Any     ,       **lowercase__   :    str):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    List[Any]     ,       *lowercase__   :    str     ,       **lowercase__   :    Tuple):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Dict     ,       *lowercase__   :    int     ,       **lowercase__   :    List[str]):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Any     ,       *lowercase__   :    Union[str, Any]     ,       **lowercase__   :    int):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    str     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    str):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])






class 							a_					(		metaclass=_a		):






 '''simple docstring'''






 UpperCAmelCase_      					=   ["""vision"""]




 def __init__(     self   :    Tuple     ,       *lowercase__   :    List[Any]     ,       **lowercase__   :    str):







        '''simple docstring'''



        requires_backends(self     ,       ['vision'])

import os
import shutil
import unittest
from unittest.mock import patch

from transformers.testing_utils import CaptureStd, is_pt_tf_cross_test, require_torch





class   lowerCAmelCase    (       unittest.TestCase      ):



     @patch('sys.argv'					,   ['fakeprogrampath', 'env']							)
     def       a__	(       self							):
            # test transformers-cli env
            import transformers.commands.transformers_cli

            with CaptureStd() as cs:
                   transformers.commands.transformers_cli.main()
            self.assertIn('Python version'					,   cs.out							)
            self.assertIn('Platform'					,   cs.out							)
            self.assertIn('Using distributed or parallel set-up in script?'					,   cs.out							)



     @is_pt_tf_cross_test
     @patch(
         'sys.argv'					,   ['fakeprogrampath', 'pt-to-tf', '--model-name', 'hf-internal-testing/tiny-random-gptj', '--no-pr']							)
     def       a__	(       self							):
            import transformers.commands.transformers_cli

            shutil.rmtree('/tmp/hf-internal-testing/tiny-random-gptj'					,   ignore_errors=lowerCAmelCase__							)  # cleans potential past runs
            transformers.commands.transformers_cli.main()

            # The original repo has no TF weights -- if they exist, they were created by the CLI
            self.assertTrue(os.path.exists('/tmp/hf-internal-testing/tiny-random-gptj/tf_model.h5'							)							)



     @require_torch
     @patch('sys.argv'					,   ['fakeprogrampath', 'download', 'hf-internal-testing/tiny-random-gptj', '--cache-dir', '/tmp']							)
     def       a__	(       self							):
            import transformers.commands.transformers_cli

            # # remove any previously downloaded model to start clean
            shutil.rmtree('/tmp/models--hf-internal-testing--tiny-random-gptj'					,   ignore_errors=lowerCAmelCase__							)

            # run the command
            transformers.commands.transformers_cli.main()

            # check if the model files are downloaded correctly on /tmp/models--hf-internal-testing--tiny-random-gptj
            self.assertTrue(os.path.exists('/tmp/models--hf-internal-testing--tiny-random-gptj/blobs'							)							)
            self.assertTrue(os.path.exists('/tmp/models--hf-internal-testing--tiny-random-gptj/refs'							)							)
            self.assertTrue(os.path.exists('/tmp/models--hf-internal-testing--tiny-random-gptj/snapshots'							)							)





     @require_torch
     @patch(
         'sys.argv'					,   [
             'fakeprogrampath',
             'download',
             'hf-internal-testing/test_dynamic_model_with_tokenizer',
             '--trust-remote-code',
             '--cache-dir',
             '/tmp',
         ]					,   )
     def       a__	(       self							):
            import transformers.commands.transformers_cli

            # # remove any previously downloaded model to start clean
            shutil.rmtree('/tmp/models--hf-internal-testing--test_dynamic_model_with_tokenizer'					,   ignore_errors=lowerCAmelCase__							)

            # run the command
            transformers.commands.transformers_cli.main()

            # check if the model files are downloaded correctly on /tmp/models--hf-internal-testing--test_dynamic_model_with_tokenizer
            self.assertTrue(os.path.exists('/tmp/models--hf-internal-testing--test_dynamic_model_with_tokenizer/blobs'							)							)
            self.assertTrue(os.path.exists('/tmp/models--hf-internal-testing--test_dynamic_model_with_tokenizer/refs'							)							)
            self.assertTrue(
                os.path.exists('/tmp/models--hf-internal-testing--test_dynamic_model_with_tokenizer/snapshots'							)							)