code: def _write_tf_records(self, examples):
      filename = os.path.join(tempfile.mkdtemp(), "input.tfrecord")
      with tf.io.TFRecordWriter(filename) as writer:
          for e in examples:
              writer.write(e.SerializeToString())
      return filename
  
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 2 for calling the UtilTest obj's underlying member method code with example usage: obj._write_tf_records(examples) and returns: filename