



# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
_lowercase    	=		abspath(join(dirname(dirname(dirname(__file__))), "src"))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action="ignore", category=FutureWarning)



def 		lowerCAmelCase__     (       UpperCamelCase_					:							List[str]						)->	Optional[int]:
    from transformers.testing_utils import pytest_addoption_shared

    pytest_addoption_shared(UpperCamelCase_						)



def 		lowerCAmelCase__     (       UpperCamelCase_					:							str						)->	Optional[Any]:
    from transformers.testing_utils import pytest_terminal_summary_main

    A__					=       terminalreporter.config.getoption('''--make-reports'''						)
    if make_reports:
        pytest_terminal_summary_main(UpperCamelCase_			,							id=UpperCamelCase_						)





from ...configuration_utils import PretrainedConfig
from ...utils import logging


_lowercase    	=		logging.get_logger(__name__)



class      _UpperCAmelCase      (							A__  ):
     UpperCamelCase__		     =					'''timm_backbone'''




     def __init__(					self			,    a__=None			,    a__=3			,    a__=True			,    a__=True			,    a__=None			,    **a__			,    ):
         super().__init__(**a__)
         A__					=       backbone
         A__					=       num_channels
         A__					=       features_only
         A__					=       use_pretrained_backbone
         A__					=       True
         A__					=       out_indices if out_indices is not None else (-1,)
