"""simple docstring"""





import pytest

from datasets.splits import SplitDict, SplitInfo
from datasets.utils.py_utils import asdict


@pytest.mark.parametrize(
    "split_dict"						,   [
        SplitDict(),
        SplitDict({"train": SplitInfo(name="train"						,   num_bytes=1337						,   num_examples=42						,   dataset_name="my_dataset"      )}      ),
        SplitDict({"train": SplitInfo(name="train"						,   num_bytes=1337						,   num_examples=42      )}      ),
        SplitDict({"train": SplitInfo()}      ),
    ]						,   )
def    lowercase_   (   _lowerCamelCase:	SplitDict      ) ->      List[Any]:



							'''simple docstring'''

							__lowerCamelCase					:		str		   =     split_dict._to_yaml_list()
							assert len(_lowerCamelCase      ) == len(_lowerCamelCase      )
							__lowerCamelCase					:		int		   =     SplitDict._from_yaml_list(_lowerCamelCase      )
							for split_name, split_info in split_dict.items():
														# dataset_name field is deprecated, and is therefore not part of the YAML dump
														__lowerCamelCase					:		str		   =     None
														# the split name of split_dict takes over the name of the split info object
														__lowerCamelCase					:		str		   =     split_name
							assert split_dict == reloaded







@pytest.mark.parametrize(
    "split_info"						,   [SplitInfo(), SplitInfo(dataset_name=_lowerCamelCase      ), SplitInfo(dataset_name="my_dataset"      )]      )
def    lowercase_   (   _lowerCamelCase:	int      ) ->      Optional[int]:



							'''simple docstring'''

							__lowerCamelCase					:		List[str]		   =     asdict(SplitDict({"train": split_info}      )      )
							assert "dataset_name" in split_dict_asdict["train"]
							assert split_dict_asdict["train"]["dataset_name"] == split_info.dataset_name
"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import _LazyModule


__A  =				{'''processing_wav2vec2_with_lm''': ['''Wav2Vec2ProcessorWithLM''']}


if TYPE_CHECKING:
				from .processing_wavaveca_with_lm import WavaVecaProcessorWithLM
else:
				import sys

				__A  =				_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)