


from __future__ import annotations



def UpperCamelCase_				(				__a			,				__a      )	->   float:
      a__	:  Tuple     =   sorted(numsa + numsa      )
      a__,	a__	:  str     =   divmod(len(__a      )			,				2      )
      if mod == 1:
            return all_numbers[div]
      else:
            return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    UpperCamelCase					:       Dict			    =     [float(x) for x in input("""Enter the elements of first array: """).split()]
    UpperCamelCase					:       Tuple			    =     [float(x) for x in input("""Enter the elements of second array: """).split()]
    print(f"""The median of two arrays is: {median_of_two_arrays(array_a, array_a)}""")


import platform
from argparse import ArgumentParser

import huggingface_hub

from .. import __version__ as version
from ..utils import is_accelerate_available, is_torch_available, is_transformers_available, is_xformers_available
from . import BaseDiffusersCLICommand
def 		snake_case__	(		lowercase					):
   return EnvironmentCommand()







class 					_lowercase    (     UpperCAmelCase__			):






    '''simple docstring'''




    @staticmethod
    def      _a    (    lowerCamelCase__ ):
       lowerCAmelCase_:							Tuple       =	parser.add_parser("env" )
       download_parser.set_defaults(func=lowerCamelCase__ )




    def      _a    (    self ):
       lowerCAmelCase_:							int       =	huggingface_hub.__version__

       lowerCAmelCase_:							List[str]       =	"not installed"
       lowerCAmelCase_:							Dict       =	"NA"
       if is_torch_available():
          import torch

          lowerCAmelCase_:							List[str]       =	torch.__version__
          lowerCAmelCase_:							int       =	torch.cuda.is_available()

       lowerCAmelCase_:							Tuple       =	"not installed"
       if is_transformers_available():
          import transformers

          lowerCAmelCase_:							Tuple       =	transformers.__version__

       lowerCAmelCase_:							Optional[int]       =	"not installed"
       if is_accelerate_available():
          import accelerate

          lowerCAmelCase_:							List[Any]       =	accelerate.__version__

       lowerCAmelCase_:							Dict       =	"not installed"
       if is_xformers_available():
          import xformers

          lowerCAmelCase_:							Dict       =	xformers.__version__

       lowerCAmelCase_:							Union[str, Any]       =	{
           "`diffusers` version": version,
           "Platform": platform.platform(),
           "Python version": platform.python_version(),
           "PyTorch version (GPU?)": F'''{pt_version} ({pt_cuda_available})''',
           "Huggingface_hub version": hub_version,
           "Transformers version": transformers_version,
           "Accelerate version": accelerate_version,
           "xFormers version": xformers_version,
           "Using GPU in script?": "<fill in>",
           "Using distributed or parallel set-up in script?": "<fill in>",
       }

       print("\nCopy-and-paste the text below in your GitHub issue and FILL OUT the two last points.\n" )
       print(self.format_dict(lowerCamelCase__ ) )

       return info




    @staticmethod
    def      _a    (    lowerCamelCase__ ):
       return "\n".join([F'''- {prop}: {val}''' for prop, val in d.items()] ) + "\n"