



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__lowerCamelCase								=					{
    """configuration_prophetnet""": ["""PROPHETNET_PRETRAINED_CONFIG_ARCHIVE_MAP""", """ProphetNetConfig"""],
    """tokenization_prophetnet""": ["""ProphetNetTokenizer"""],
}

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    __lowerCamelCase								=					[
        """PROPHETNET_PRETRAINED_MODEL_ARCHIVE_LIST""",
        """ProphetNetDecoder""",
        """ProphetNetEncoder""",
        """ProphetNetForCausalLM""",
        """ProphetNetForConditionalGeneration""",
        """ProphetNetModel""",
        """ProphetNetPreTrainedModel""",
    ]


if TYPE_CHECKING:
    from .configuration_prophetnet import PROPHETNET_PRETRAINED_CONFIG_ARCHIVE_MAP, ProphetNetConfig
    from .tokenization_prophetnet import ProphetNetTokenizer

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_prophetnet import (
            PROPHETNET_PRETRAINED_MODEL_ARCHIVE_LIST,
            ProphetNetDecoder,
            ProphetNetEncoder,
            ProphetNetForCausalLM,
            ProphetNetForConditionalGeneration,
            ProphetNetModel,
            ProphetNetPreTrainedModel,
        )

else:
    import sys

    __lowerCamelCase								=					_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)




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     UpperCAmelCase__ (							__snake_case							)   -> Optional[Any]:
  return EnvironmentCommand()



class 		_snake_case      (			lowerCamelCase				):





 """simple docstring"""



 @staticmethod
 def lowercase_		(						a					)	->							Dict:




   """simple docstring"""







   _A           =    parser.add_parser('''env'''	,    help='''Print relevant system environment info.'''					)
   download_parser.set_defaults(func=a					)
 def lowercase_		(						self					)	->							Optional[int]:




   """simple docstring"""







   _A           =    {
       '''`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(a					)					)

   return info



 @staticmethod
 def lowercase_		(						a					)	->							Optional[int]:




   """simple docstring"""







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