class_docstr: Tests for Fairness Indicators plugin server.
class_docstr_tok: ["Tests","for","Fairness","Indicators","plugin","server","."]
code: def setUp(self):
      super(PluginTest, self).setUp()
      # Log dir to save temp events into.
      self._log_dir = self.get_temp_dir()
      self._eval_result_output_dir = os.path.join(
          self.get_temp_dir(), "eval_result"
      )
      if not os.path.isdir(self._eval_result_output_dir):
          os.mkdir(self._eval_result_output_dir)
  
      writer = tf.summary.create_file_writer(self._log_dir)
  
      with writer.as_default():
          summary_v2.FairnessIndicators(
              self._eval_result_output_dir, step=1
          )
      writer.close()
  
      # Start a server that will receive requests.
      self._multiplexer = event_multiplexer.EventMultiplexer(
          {
              ".": self._log_dir,
          }
      )
      self._context = base_plugin.TBContext(
          logdir=self._log_dir, multiplexer=self._multiplexer
      )
      self._plugin = plugin.FairnessIndicatorsPlugin(self._context)
      self._multiplexer.Reload()
      wsgi_app = application.TensorBoardWSGI([self._plugin])
      self._server = werkzeug_test.Client(wsgi_app, wrappers.Response)
      self._routes = self._plugin.get_plugin_apps()
  
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 1 for calling the PluginTest obj's underlying member method code with example usage: obj.setUp() without return types