def register_dummy_task(task_name: str, dataset_fn: Callable[([str, str], tf.data.Dataset)], output_feature_names: Sequence[str]=('inputs', 'targets')) -> None:
    'Register a dummy task for GetDatasetTest.'
    dataset_providers.TaskRegistry.add(task_name, source=dataset_providers.FunctionDataSource(dataset_fn=dataset_fn, splits=['train', 'validation']), preprocessors=[dataset_providers.CacheDatasetPlaceholder(), preprocessors.append_eos_after_trim], output_features={feat: dataset_providers.Feature(test_utils.sentencepiece_vocab()) for feat in output_feature_names}, metric_fns=[])
Register a dummy task for GetDatasetTest.
def register_dummy_task(task_name: str, dataset_fn: Callable[([str, str], tf.data.Dataset)], output_feature_names: Sequence[str]=('inputs', 'targets')) -> None:
    
    dataset_providers.TaskRegistry.add(task_name, source=dataset_providers.FunctionDataSource(dataset_fn=dataset_fn, splits=['train', 'validation']), preprocessors=[dataset_providers.CacheDatasetPlaceholder(), preprocessors.append_eos_after_trim], output_features={feat: dataset_providers.Feature(test_utils.sentencepiece_vocab()) for feat in output_feature_names}, metric_fns=[])