class_docstr: Tests for mesh plugin server.
docstr: Makes request and checks that response has expected data.
docstr_tok: ["Makes","request","and","checks","that","response","has","expected","data","."]
code: def validate_data_response(
      self,
      run,
      tag,
      sample,
      content_type,
      dtype,
      ground_truth_data,
      step=0,
  ):
      """Makes request and checks that response has expected data."""
      response = self.server.get(
          "/data/plugin/mesh/data?run=%s&tag=%s&sample=%d&content_type="
          "%s&step=%d" % (run, tag, sample, content_type, step)
      )
      self.assertEqual(200, response.status_code)
      data = test_utils.deserialize_array_buffer_response(
          next(response.response), dtype
      )
      self.assertEqual(
          ground_truth_data.reshape(-1).tolist(), data.tolist()
      )
  
imports: import collections.abc
  import os
  import shutil
  import numpy
  import tensorflow
  import time
  from unittest import mock
  from werkzeug import test
  from werkzeug import wrappers
  from tensorboard.backend import application
  from tensorboard.backend.event_processing import data_provider
  from tensorboard.backend.event_processing import plugin_event_multiplexer
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.mesh import mesh_plugin
  from tensorboard.plugins.mesh import summary
  from tensorboard.plugins.mesh import plugin_data_pb2
  from tensorboard.plugins.mesh import test_utils
  from tensorboard.util import test_util
label_desc: Use image node_id 5 for calling the MeshPluginTest obj's underlying member method code with example usage: obj.validate_data_response(run, tag, sample, content_type, dtype, ground_truth_data, step) without return types