docstr: Tests ProtoBuf interface.
docstr_tok: ["Tests","ProtoBuf","interface","."]
code: def test_pb(self):
      """Tests ProtoBuf interface."""
      name = "my_mesh"
      tensor_data = test_utils.get_random_mesh(
          100, add_faces=True, add_colors=True
      )
      config_dict = {"foo": 1}
      proto = summary.mesh_pb(
          name,
          tensor_data.vertices,
          faces=tensor_data.faces,
          colors=tensor_data.colors,
          config_dict=config_dict,
      )
      plugin_metadata = metadata.parse_plugin_metadata(
          proto.value[0].metadata.plugin_data.content
      )
      self.assertEqual(
          json.dumps(config_dict, sort_keys=True),
          plugin_metadata.json_config,
      )
  
imports: import glob
  import json
  import os
  import tensorflow
  from tensorboard.compat import tf2
  from tensorboard.plugins.mesh import summary
  from tensorboard.plugins.mesh import metadata
  from tensorboard.plugins.mesh import plugin_data_pb2
  from tensorboard.plugins.mesh import test_utils
label_desc: Use image node_id 7 for calling the MeshSummaryV2Test obj's underlying member method code with example usage: obj.test_pb() without return types