



'''simple docstring'''



import platform
from argparse import ArgumentParser

import huggingface_hub
import pandas
import pyarrow

from datasets import __version__ as version
from datasets.commands import BaseDatasetsCLICommand



def 	__lowerCAmelCase       (				lowerCamelCase :    List[Any]       ):






	'''simple docstring'''




	return EnvironmentCommand()






class        UpperCAmelCase__						(		UpperCamelCase__			):



					@staticmethod
					def 							UpperCAmelCase_			(     UpperCamelCase  )  ->      List[Any]:
						__lowerCAmelCase       				=	parser.add_parser("env"      ,					help="Print relevant system environment info."  )
						download_parser.set_defaults(func=UpperCamelCase  )



					def 							UpperCAmelCase_			(     self  )  ->      Dict:
						__lowerCAmelCase       				=	{
						    "`datasets` version": version,
						    "Platform": platform.platform(),
						    "Python version": platform.python_version(),
						    "Huggingface_hub version": huggingface_hub.__version__,
						    "PyArrow version": pyarrow.__version__,
						    "Pandas version": pandas.__version__,
						}

						print("\nCopy-and-paste the text below in your GitHub issue.\n"  )
						print(self.format_dict(UpperCamelCase  )  )

						return info



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




'''simple docstring'''



lowerCAmelCase						:		Any						      = '''
# Transformers installation
! pip install transformers datasets
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/transformers.git
'''

lowerCAmelCase						:		Any						      = [{'''type''': '''code''', '''content''': INSTALL_CONTENT}]
lowerCAmelCase						:		str						      = {
    '''{processor_class}''': '''FakeProcessorClass''',
    '''{model_class}''': '''FakeModelClass''',
    '''{object_class}''': '''FakeObjectClass''',
}