code: 
  
  
  
  
  """simple docstring"""
  
  
  
  def 						_SCREAMING_SNAKE_CASE     (							lowercase_		)		->	float:
   return -num if num < 0 else num
  
  
  
  
  
  
  
  def 						_SCREAMING_SNAKE_CASE     (							lowercase_		)		->	int:
   if len(lowercase_		) == 0:
    raise ValueError("abs_min() arg is an empty sequence"		)
   A__ =       x[0]
   for i in x:
    if abs_val(lowercase_		) < abs_val(lowercase_		):
     A__ =       i
   return j
  
  
  
  
  
  
  
  def 						_SCREAMING_SNAKE_CASE     (							lowercase_		)		->	int:
   if len(lowercase_		) == 0:
    raise ValueError("abs_max() arg is an empty sequence"		)
   A__ =       x[0]
   for i in x:
    if abs(lowercase_		) > abs(lowercase_		):
     A__ =       i
   return j
  
  
  
  
  
  
  
  def 						_SCREAMING_SNAKE_CASE     (							lowercase_		)		->	int:
   if len(lowercase_		) == 0:
    raise ValueError("abs_max_sort() arg is an empty sequence"		)
   return sorted(lowercase_    ,				key=lowercase_		)[-1]
  
  
  
  
  
  
  
  def 						_SCREAMING_SNAKE_CASE     (							)		->	Any:
   assert abs_val(0		) == 0
   assert abs_val(34		) == 34
   assert abs_val(-10_00_00_00_00_00		) == 10_00_00_00_00_00
  
   A__ =       [-3, -1, 2, -11]
   assert abs_max(lowercase_		) == -11
   assert abs_max_sort(lowercase_		) == -11
   assert abs_min(lowercase_		) == -1
  
  
  if __name__ == "__main__":
        import doctest
  
        doctest.testmod()
  
        test_abs_val()
        print(abs_val(-34))  # --> 34
  
  
  
  
  
  
style_context: 
  
  
  
  
  """simple docstring"""
  
  
  
  from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available
  
  
  SCREAMING_SNAKE_CASE       = {
      "configuration_deta": ["DETA_PRETRAINED_CONFIG_ARCHIVE_MAP", "DetaConfig"],
  }
  
  try:
        if not is_vision_available():
              raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
        pass
  else:
        SCREAMING_SNAKE_CASE       = ["DetaImageProcessor"]
  
  try:
        if not is_torch_available():
              raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
        pass
  else:
        SCREAMING_SNAKE_CASE       = [
            "DETA_PRETRAINED_MODEL_ARCHIVE_LIST",
            "DetaForObjectDetection",
            "DetaModel",
            "DetaPreTrainedModel",
        ]
  
  
  if TYPE_CHECKING:
        from .configuration_deta import DETA_PRETRAINED_CONFIG_ARCHIVE_MAP, DetaConfig
  
        try:
              if not is_vision_available():
                    raise OptionalDependencyNotAvailable()
        except OptionalDependencyNotAvailable:
              pass
        else:
              from .image_processing_deta import DetaImageProcessor
  
        try:
              if not is_torch_available():
                    raise OptionalDependencyNotAvailable()
        except OptionalDependencyNotAvailable:
              pass
        else:
              from .modeling_deta import (
                  DETA_PRETRAINED_MODEL_ARCHIVE_LIST,
                  DetaForObjectDetection,
                  DetaModel,
                  DetaPreTrainedModel,
              )
  
  else:
        import sys
  
        SCREAMING_SNAKE_CASE       = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
  
  
  
  
  
  