class_docstr: Tests for Fairness Indicators plugin server.
class_docstr_tok: ["Tests","for","Fairness","Indicators","plugin","server","."]
code: def testGetEvalResultsFromURLRoute(self):
      model_location = self._exportEvalSavedModel(
          linear_classifier.simple_linear_classifier
      )
      examples = [
          self._makeExample(age=3.0, language="english", label=1.0),
          self._makeExample(age=3.0, language="chinese", label=0.0),
          self._makeExample(age=4.0, language="english", label=1.0),
          self._makeExample(age=5.0, language="chinese", label=1.0),
          self._makeExample(age=5.0, language="hindi", label=1.0),
      ]
      data_location = self._writeTFExamplesToTFRecords(examples)
      _ = tfma.run_model_analysis(
          eval_shared_model=tfma.default_eval_shared_model(
              eval_saved_model_path=model_location,
              example_weight_key="age",
          ),
          data_location=data_location,
          output_path=self._eval_result_output_dir,
      )
  
      response = self._server.get(
          "/data/plugin/fairness_indicators/"
          + "get_evaluation_result_from_remote_path?evaluation_output_path="
          + os.path.join(self._eval_result_output_dir, tfma.METRICS_KEY)
      )
      self.assertEqual(200, response.status_code)
  
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 12 for calling the PluginTest obj's underlying member method code with example usage: obj.testGetEvalResultsFromURLRoute() without return types