"""simple docstring"""




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


_a				:		Dict	   =       logging.get_logger(__name__)

_a				:		str	   =       {
    'facebook/timesformer': 'https://huggingface.co/facebook/timesformer/resolve/main/config.json',
}
class 						__A							(			SCREAMING_SNAKE_CASE_		):
     _UpperCamelCase							:      int		 =		"timesformer"






     def __init__(		self    ,					a__=224    ,					a__=16    ,					a__=3    ,					a__=8    ,					a__=768    ,					a__=12    ,					a__=12    ,					a__=3072    ,					a__="gelu"    ,					a__=0.0    ,					a__=0.0    ,					a__=0.0_2    ,					a__=1e-6    ,					a__=True    ,					a__="divided_space_time"    ,					a__=0    ,					**a__    ,					):
       super().__init__(**a__  )

       _lowerCAmelCase						:	Any        =					image_size
       _lowerCAmelCase						:	List[Any]        =					patch_size
       _lowerCAmelCase						:	Dict        =					num_channels
       _lowerCAmelCase						:	int        =					num_frames

       _lowerCAmelCase						:	Tuple        =					hidden_size
       _lowerCAmelCase						:	List[Any]        =					num_hidden_layers
       _lowerCAmelCase						:	int        =					num_attention_heads
       _lowerCAmelCase						:	Optional[Any]        =					intermediate_size
       _lowerCAmelCase						:	Optional[int]        =					hidden_act
       _lowerCAmelCase						:	List[str]        =					hidden_dropout_prob
       _lowerCAmelCase						:	List[Any]        =					attention_probs_dropout_prob
       _lowerCAmelCase						:	str        =					initializer_range
       _lowerCAmelCase						:	Dict        =					layer_norm_eps
       _lowerCAmelCase						:	Any        =					qkv_bias

       _lowerCAmelCase						:	Union[str, Any]        =					attention_type
       _lowerCAmelCase						:	Tuple        =					drop_path_rate





"""simple docstring"""




def 							SCREAMING_SNAKE_CASE					(      _lowerCamelCase						:	str      ,_lowerCamelCase						:	bool = False     )	->				str:

  if not isinstance(_lowerCamelCase      ,_lowerCamelCase     ):
    _lowerCAmelCase						:	Union[str, Any]        =					f"Expected string as input, found {type(_lowerCamelCase     )}"
    raise ValueError(_lowerCamelCase     )
  if not isinstance(_lowerCamelCase      ,_lowerCamelCase     ):
    _lowerCAmelCase						:	Union[str, Any]        =					f"Expected boolean as use_pascal parameter, found {type(_lowerCamelCase     )}"
    raise ValueError(_lowerCamelCase     )

  _lowerCAmelCase						:	str        =					input_str.split("""_"""     )

  _lowerCAmelCase						:	Optional[int]        =					0 if use_pascal else 1

  _lowerCAmelCase						:	List[Any]        =					words[start_index:]

  _lowerCAmelCase						:	Union[str, Any]        =					[word[0].upper() + word[1:] for word in words_to_capitalize]

  _lowerCAmelCase						:	List[Any]        =					"""""" if use_pascal else words[0]

  return "".join([initial_word, *capitalized_words]     )


if __name__ == "__main__":
     from doctest import testmod

     testmod()




