code: def test_convert_data_tfrecord(self):
      input_file = self._write_tf_records(
          self._create_example_tfrecord()
      )
      output_file = util.convert_comments_data(input_file)
      output_example_list = []
      for serialized in tf.data.TFRecordDataset(
          filenames=[output_file]
      ):
          output_example = tf.train.Example()
          output_example.ParseFromString(serialized.numpy())
          output_example_list.append(output_example)
  
      self.assertEqual(len(output_example_list), 1)
      self.assertEqual(
          output_example_list[0],
          text_format.Parse(
              """
          features {
            feature { key: "comment_text"
                      value { bytes_list {value: [ "comment 1" ] }}
                    }
            feature { key: "toxicity" value { float_list { value: [ 0.0 ] }}}
            feature { key: "sexual_orientation"
                      value { bytes_list { value: ["bisexual"] }}
                    }
            feature { key: "gender" value { bytes_list { }}}
            feature { key: "race"
                      value { bytes_list { value: [ "other_race_or_ethnicity" ] }}
                    }
            feature { key: "religion"
                      value { bytes_list {
                        value: [  "atheist", "other_religion" ] }
                      }
                    }
            feature { key: "disability" value { bytes_list {
                      value: [
                        "physical_disability",
                        "intellectual_or_learning_disability",
                        "psychiatric_or_mental_illness",
                        "other_disability"] }}
                    }
          }
          """,
              tf.train.Example(),
          ),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import csv
  import os
  import tempfile
  from unittest import mock
  from fairness_indicators.tutorial_utils import util
  import pandas
  import tensorflow
  import tensorflow_model_analysis
  from google.protobuf import text_format
label_desc: Use image node_id 3 for calling the UtilTest obj's underlying member method code with example usage: obj.test_convert_data_tfrecord() without return types