class_docstr: Tests for mesh plugin server.
docstr: Tests that events always sorted by step.
docstr_tok: ["Tests","that","events","always","sorted","by","step","."]
code: def testsEventsAlwaysSortedByStep(self):
      """Tests that events always sorted by step."""
      response = self.server.get(
          "/data/plugin/mesh/meshes?run=%s&tag=%s&sample=%d"
          % (self.runs[0], self.names[1], 0)
      )
      self.assertEqual(200, response.status_code)
      metadata = test_utils.deserialize_json_response(
          response.get_data()
      )
      for i in range(1, self.steps):
          # Step will be equal when two tensors of different content type
          # belong to the same mesh.
          self.assertLessEqual(
              metadata[i - 1]["step"], metadata[i]["step"]
          )
  
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 8 for calling the MeshPluginTest obj's underlying member method code with example usage: obj.testsEventsAlwaysSortedByStep() without return types