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


__lowerCamelCase    :				Optional[Any]							     =	logging.get_logger(__name__)







class __snake_case       (		lowerCamelCase_	):
   lowerCAmelCase_														=							"timm_backbone"




   def __init__(					self    :       str ,			_lowercase    :       Union[str, Any]=None ,			_lowercase    :       Optional[int]=3 ,			_lowercase    :       Optional[Any]=True ,			_lowercase    :       List[str]=True ,			_lowercase    :       Tuple=None ,			**_lowercase    :       Any ,			):



     """simple docstring"""






     super().__init__(**_lowercase   )
     SCREAMING_SNAKE_CASE__    							=   backbone
     SCREAMING_SNAKE_CASE__    							=   num_channels
     SCREAMING_SNAKE_CASE__    							=   features_only
     SCREAMING_SNAKE_CASE__    							=   use_pretrained_backbone
     SCREAMING_SNAKE_CASE__    							=   True
     SCREAMING_SNAKE_CASE__    							=   out_indices if out_indices is not None else (-1,)

def 			__SCREAMING_SNAKE_CASE						(      __UpperCamelCase					: list				,  __UpperCamelCase					: list				,  __UpperCamelCase					: int				,  __UpperCamelCase					: int				,  __UpperCamelCase					: int			)							->      int:







  """simple docstring"""





  if index == number_of_items:
    return 0
  SCREAMING_SNAKE_CASE__    							=   0
  SCREAMING_SNAKE_CASE__    							=   0
  SCREAMING_SNAKE_CASE__    							=   knapsack(__UpperCamelCase				,  __UpperCamelCase				,  __UpperCamelCase				,  __UpperCamelCase				,  index + 1			)
  if weights[index] <= max_weight:
    SCREAMING_SNAKE_CASE__    							=   values[index] + knapsack(
        __UpperCamelCase				,  __UpperCamelCase				,  __UpperCamelCase				,  max_weight - weights[index]				,  index + 1			)
  return max(__UpperCamelCase				,  __UpperCamelCase			)


if __name__ == "__main__":
   import doctest

   doctest.testmod()
