docstr: Fetch and return the graph as a proto.
docstr_tok: ["Fetch","and","return","the","graph","as","a","proto","."]
code: def _get_graph(self, plugin, *args, **kwargs):
      """Fetch and return the graph as a proto."""
      (graph_pbtxt, mime_type) = plugin.graph_impl(*args, **kwargs)
      self.assertEqual(mime_type, "text/x-protobuf")
      return text_format.Parse(graph_pbtxt, graph_pb2.GraphDef())
  
file_path: tensorboard/tensorboard/plugins/graph/graphs_plugin_v2_test.py
imports: import numpy
  import os.path
  from google.protobuf import text_format
  import tensorflow
  from tensorboard.compat.proto import graph_pb2
  from tensorboard.plugins.graph import graphs_plugin_test
label_desc: Use image node_id 2 for calling the GraphsPluginV2Test obj's underlying member method code with example usage: obj._get_graph(plugin) and returns: text_format