code: def _write_tf_records(self, examples):
      data_location = os.path.join(self._base_dir, "input_data.rio")
      with tf.io.TFRecordWriter(data_location) as writer:
          for example in examples:
              writer.write(example.SerializeToString())
      return data_location
  
file_path: fairness-indicators/fairness_indicators/example_model_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import datetime
  import os
  import tempfile
  from fairness_indicators import example_model
  import six
  import tensorflow.compat.v1
  import tensorflow_model_analysis
  from tensorflow_model_analysis.slicer import slicer_lib
label_desc: Use image node_id 4 for calling the ExampleModelTest obj's underlying member method code with example usage: obj._write_tf_records(examples) and returns: data_location