





from ..utils import DummyObject, requires_backends
class        SCREAMING_SNAKE_CASE     (metaclass=__lowerCAmelCase   ):
   _UpperCamelCase					:	List[str]				      = ['onnx']


   def __init__(					self    :       Optional[Any]    ,  *a    :       Tuple    ,  **a    :       int )->     int:





     """simple docstring"""







     requires_backends(self    ,  ['onnx'] )


   @classmethod
   def  SCREAMING_SNAKE_CASE_							(					cls    :       Optional[Any]    ,  *a    :       Optional[Any]    ,  **a    :       Optional[int] )->     int:





     """simple docstring"""







     requires_backends(cls    ,  ['onnx'] )


   @classmethod
   def  SCREAMING_SNAKE_CASE_							(					cls    :       List[Any]    ,  *a    :       List[str]    ,  **a    :       List[Any] )->     List[str]:





     """simple docstring"""







     requires_backends(cls    ,  ['onnx'] )









from string import ascii_uppercase

lowercase_					     =	{str(ord(c) - 55): c for c in ascii_uppercase}




def     __UpperCamelCase						(_SCREAMING_SNAKE_CASE	,		_SCREAMING_SNAKE_CASE	)       ->     str:
  if isinstance(_SCREAMING_SNAKE_CASE	,		_SCREAMING_SNAKE_CASE	):
    raise TypeError('int() can\'t convert non-string with explicit base'	)
  if num < 0:
    raise ValueError('parameter must be positive int'	)
  if isinstance(_SCREAMING_SNAKE_CASE	,		_SCREAMING_SNAKE_CASE	):
    raise TypeError('\'str\' object cannot be interpreted as an integer'	)
  if isinstance(_SCREAMING_SNAKE_CASE	,		_SCREAMING_SNAKE_CASE	):
    raise TypeError('\'float\' object cannot be interpreted as an integer'	)
  if base in (0, 1):
    raise ValueError('base must be >= 2'	)
  if base > 36:
    raise ValueError('base must be <= 36'	)
  lowercase__			    =						''
  lowercase__			    =						0
  lowercase__			    =						0
  while div != 1:
    lowercase__    ,					lowercase__			    =						divmod(_SCREAMING_SNAKE_CASE	,		_SCREAMING_SNAKE_CASE	)
    if base >= 11 and 9 < mod < 36:
      lowercase__			    =						ALPHABET_VALUES[str(_SCREAMING_SNAKE_CASE	)]
    else:
      lowercase__			    =						str(_SCREAMING_SNAKE_CASE	)
    new_value += actual_value
    lowercase__			    =						num // base
    lowercase__			    =						div
    if div == 0:
      return str(new_value[::-1]	)
    elif div == 1:
      new_value += str(_SCREAMING_SNAKE_CASE	)
      return str(new_value[::-1]	)

  return new_value[::-1]


if __name__ == "__main__":
      import doctest

      doctest.testmod()

      for base in range(2, 37):
            for num in range(1_000):
                  assert int(decimal_to_any(num, base), base) == num, (
                      num,
                      base,
                      decimal_to_any(num, base),
                      int(decimal_to_any(num, base), base),
                  )


