




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 							__SCREAMING_SNAKE_CASE						(    snake_case_		):

						'''simple docstring'''


						return EnvironmentCommand()






class 					__lowerCAmelCase				( UpperCAmelCase__				):







			@staticmethod
			def UpperCamelCase    ( snake_case__					:    ArgumentParser   ):




									"""simple docstring"""


									_UpperCAmelCase									=  parser.add_parser("env"					,					help="Print relevant system environment info."   )
									download_parser.set_defaults(func=snake_case__   )







			def UpperCamelCase    ( self					:    List[str]   ):




									"""simple docstring"""


									_UpperCAmelCase									=  {
									    "`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(snake_case__   )   )

									return info







			@staticmethod
			def UpperCamelCase    ( snake_case__					:    Tuple   ):




									"""simple docstring"""


									return "\n".join([F"""- {prop}: {val}""" for prop, val in d.items()]   ) + "\n"










from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


lowercase_			:       List[str]						       =				{
    'configuration_rwkv': ['RWKV_PRETRAINED_CONFIG_ARCHIVE_MAP', 'RwkvConfig', 'RwkvOnnxConfig'],
}

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				lowercase_			:       Any						       =				[
				    'RWKV_PRETRAINED_MODEL_ARCHIVE_LIST',
				    'RwkvForCausalLM',
				    'RwkvModel',
				    'RwkvPreTrainedModel',
				]


if TYPE_CHECKING:
				from .configuration_rwkv import RWKV_PRETRAINED_CONFIG_ARCHIVE_MAP, RwkvConfig, RwkvOnnxConfig

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_rwkv import (
								    RWKV_PRETRAINED_MODEL_ARCHIVE_LIST,
								    RwkvForCausalLM,
								    RwkvModel,
								    RwkvPreTrainedModel,
								)
else:
				import sys

				lowercase_			:       Union[str, Any]						       =				_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)




