



"""simple docstring"""





import baseaa
def 						__lowerCAmelCase    (		__UpperCamelCase   :      str     ):


						'''simple docstring'''






						return baseaa.baaencode(string.encode("""utf-8"""     )     )
def 						__lowerCAmelCase    (		__UpperCamelCase   :      bytes     ):


						'''simple docstring'''






						return baseaa.baadecode(__UpperCamelCase     ).decode("""utf-8"""     )


if __name__ == "__main__":
					__lowerCAmelCase							:       Optional[int]          =       '''Hello World!'''
					__lowerCAmelCase							:       str          =       baseaa_encode(test)
					print(encoded)

					__lowerCAmelCase							:       List[Any]          =       baseaa_decode(encoded)
					print(decoded)








from packaging import version

from .import_utils import is_accelerate_available


if is_accelerate_available():
  import accelerate






def    _A	(   lowerCamelCase ):
   if not is_accelerate_available():
      return method
   a__						:    List[Any]   		=	version.parse(accelerate.__version__ ).base_version
   if version.parse(lowerCamelCase ) < version.parse("0.17.0" ):
      return method

   def wrapper(self				,			*lowerCamelCase				,			**lowerCamelCase ):
      if hasattr(self				,			"_hf_hook" ) and hasattr(self._hf_hook				,			"pre_forward" ):
         self._hf_hook.pre_forward(self )
      return method(self				,			*lowerCamelCase				,			**lowerCamelCase )

   return wrapper

