code: def tsv_dataset_fn(
      filename,
      sequence_length,
      dataset_split,
      vocabulary,
      shuffle_buffer_size=10000,
  ):
      r"""Returns a dataset based on a TSV file formatted as `<input>\t<target>`."""
      # Currently `tf.gfile.glob` is broken on GCS, so we only read a file or
      # list of files.
      return transformer_dataset.packed_parallel_tsv_dataset(
          dataset=tf.data.TextLineDataset(filename).shuffle(
              shuffle_buffer_size
          ),
          sequence_length=sequence_length,
          vocabulary=vocabulary,
          dataset_split=dataset_split,
          append_eos=True,
          eos_id=1,
      )
  
file_path: text-to-text-transfer-transformer/t5/models/mesh_transformer.py
imports: import functools
  from absl import logging
  import gin
  import mesh_tensorflow.transformer.dataset
  import seqio
  from t5.models import utils
  import tensorflow.compat.v1
  import tensorflow_datasets
label_desc: Use image node_id 4 for calling a global function with example usage: tsv_dataset_fn(filename, sequence_length, dataset_split, vocabulary, shuffle_buffer_size) and returns: transformer_dataset