code: def _add_t5_task(
      name,
      cls,
      text_preprocessor=(test_utils.test_text_preprocessor,),
      output_features=None,
      **kwargs,
  ):
      output_features = output_features or {
          "inputs": seqio.Feature(test_utils.sentencepiece_vocab()),
          "targets": seqio.Feature(test_utils.sentencepiece_vocab()),
      }
      return TaskRegistry.add(
          name,
          cls,
          text_preprocessor=text_preprocessor,
          metric_fns=[],
          output_features=output_features,
          **kwargs,
      )
  
imports: import os
  from absl.testing import absltest
  import immutabledict
  import seqio
  from seqio import test_utils
  from t5.data import dataset_providers
  import tensorflow.compat.v2
label_desc: Use image node_id 1 for calling a global function with example usage: _add_t5_task(name, cls, text_preprocessor, output_features) and returns: TaskRegistry