'''simple docstring'''




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__SCREAMING_SNAKE_CASE			:	Tuple	=    {
    """configuration_table_transformer""": [
        """TABLE_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """TableTransformerConfig""",
        """TableTransformerOnnxConfig""",
    ]
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __SCREAMING_SNAKE_CASE			:	Tuple	=    [
      """TABLE_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """TableTransformerForObjectDetection""",
      """TableTransformerModel""",
      """TableTransformerPreTrainedModel""",
  ]


if TYPE_CHECKING:
  from .configuration_table_transformer import (
      TABLE_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
      TableTransformerConfig,
      TableTransformerOnnxConfig,
  )

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_table_transformer import (
        TABLE_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
        TableTransformerForObjectDetection,
        TableTransformerModel,
        TableTransformerPreTrainedModel,
    )

else:
  import sys

  __SCREAMING_SNAKE_CASE			:	Dict	=    _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)




def 			_A	(      SCREAMING_SNAKE_CASE      ):
	UpperCAmelCase__:	Tuple									= int(SCREAMING_SNAKE_CASE      )
	if decimal in (0, 1):  # Exit cases for the recursion
		return str(SCREAMING_SNAKE_CASE      )
	UpperCAmelCase__							,						UpperCAmelCase__:	Union[str, Any]									= divmod(SCREAMING_SNAKE_CASE	,2      )
	return binary_recursive(SCREAMING_SNAKE_CASE      ) + str(SCREAMING_SNAKE_CASE      )



def 			_A	(      SCREAMING_SNAKE_CASE      ):
	UpperCAmelCase__:	List[str]									= str(SCREAMING_SNAKE_CASE      ).strip()
	if not number:
		raise ValueError("No input value was provided"      )
	UpperCAmelCase__:	Tuple									= "-" if number.startswith("-"      ) else ""
	UpperCAmelCase__:	Any									= number.lstrip("-"      )
	if not number.isnumeric():
		raise ValueError("Input value is not an integer"      )
	return f"{negative}0b{binary_recursive(int(SCREAMING_SNAKE_CASE      )      )}"


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

					testmod()