code: def _example_generator(filename):
      """Generate mnli examples.
  
      Args:
        filename: a string
      Yields:
        dictionaries containing "premise", "hypothesis" and "label" strings
      """
      for idx, line in enumerate(tf.gfile.Open(filename, "rb")):
          if idx == 0:
              continue  # skip header
          line = text_encoder.to_unicode_utf8(line.strip())
          split_line = line.split("\t")
          # Works for both splits even though dev has some extra human labels.
          yield {
              "premise": split_line[8],
              "hypothesis": split_line[9],
              "label": split_line[-1],
          }
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import zipfile
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import lm1b
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.data_generators import wiki_lm
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: _example_generator(filename) without return types