code: def test_get_t5_preprocessor_by_name(self):
      gin.clear_config()
  
      gin.parse_config(
          """
        get_t5_preprocessor_by_name.name = 'rekey'
        get_t5_preprocessor_by_name.fn_kwargs = {'key_map': {'inputs': 'other', 'targets': 'text'}}
      """
      )
      prep_rekey = tf_inputs.get_t5_preprocessor_by_name()
      og_dataset = tf.data.Dataset.from_tensors(
          {"text": "That is good.", "other": "That is bad."}
      )
      training = True
      dataset = prep_rekey(og_dataset, training)
      assert_dataset(
          dataset,
          {"inputs": "That is bad.", "targets": "That is good."},
      )
  
imports: import collections
  import os
  from unittest import mock
  import gin
  import numpy
  from t5.data import assert_dataset
  from t5.data import preprocessors
  import tensorflow
  import tensorflow_datasets
  from trax.data import inputs
  from trax.data import tf_inputs
label_desc: Use image node_id 20 for calling the TFInputsTest obj's underlying member method code with example usage: obj.test_get_t5_preprocessor_by_name() without return types