class_docstr: Tests for Fairness Indicators plugin server.
class_docstr_tok: ["Tests","for","Fairness","Indicators","plugin","server","."]
code: def _writeTFExamplesToTFRecords(self, examples):
      data_location = os.path.join(
          self.get_temp_dir(), "input_data.rio"
      )
      with tf.io.TFRecordWriter(data_location) as writer:
          for example in examples:
              writer.write(example.SerializeToString())
      return data_location
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from collections import abc
  import os
  import shutil
  from unittest import mock
  from tensorboard_plugin_fairness_indicators import plugin
  from tensorboard_plugin_fairness_indicators import summary_v2
  import six
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  import tensorflow_model_analysis
  from tensorflow_model_analysis.eval_saved_model.example_trainers import linear_classifier
  from werkzeug import test
  from werkzeug import wrappers
  from tensorboard.backend import application
  from tensorboard.backend.event_processing import plugin_event_multiplexer
  from tensorboard.plugins import base_plugin
label_desc: Use image node_id 4 for calling the PluginTest obj's underlying member method code with example usage: obj._writeTFExamplesToTFRecords(examples) and returns: data_location