docstr: Get the op info of an op with no inputs.
docstr_tok: ["Get","the","op","info","of","an","op","with","no","inputs","."]
code: def testServeGraphOpInfoForOpWithNoInputs(self):
      """Get the op info of an op with no inputs."""
      _generate_tfdbg_v2_data(self.logdir)
      run = self._getExactlyOneRun()
      response = self.server.get(
          _ROUTE_PREFIX + "/graph_execution/digests?run=%s" % run
      )
      data = json.loads(response.get_data())
      digests = data["graph_execution_digests"]
      op_types = [digest["op_type"] for digest in digests]
      graph_ids = [digest["graph_id"] for digest in digests]
      placeholder_op_index = op_types.index("Placeholder")
      op_name = digests[placeholder_op_index]["op_name"]
      graph_id = digests[placeholder_op_index]["graph_id"]
      # Actually query the /graphs/op_info route.
      response = self.server.get(
          _ROUTE_PREFIX
          + "/graphs/op_info?run=%s&graph_id=%s&op_name=%s"
          % (run, graph_id, op_name)
      )
      self.assertEqual(response.status_code, 200)
      data = json.loads(response.get_data())
  
      # Check op's self properties.
      self.assertEqual(data["op_type"], "Placeholder")
      self.assertTrue(data["op_name"])
      # TODO(cais): Assert on detailed device name when available.
      self.assertIn("device_name", data)
      # The op is inside a nested tf.function, so its graph stack must have a height > 1.
      self.assertNotIn("graph_id", data)
      self.assertGreater(len(data["graph_ids"]), 1)
      self.assertEqual(data["graph_ids"][-1], graph_id)
      self.assertNotIn("input_names", data)
      self.assertEqual(data["num_outputs"], 1)
      self.assertEqual(data["host_name"], _HOST_NAME)
      self.assertTrue(data["stack_frame_ids"])
  
      # Check input op properties: The Placeholder has no inputs.
      self.assertEqual(data["inputs"], [])
  
      # Check consumers.
      self.assertLen(data["consumers"], 1)
      self.assertEmpty(data["consumers"][0])
  
imports: import collections
  import json
  import os
  import socket
  import threading
  import tensorflow
  from werkzeug import test
  from werkzeug import wrappers
  from tensorboard.backend import application
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.debugger_v2 import debug_data_multiplexer
  from tensorboard.plugins.debugger_v2 import debugger_v2_plugin
label_desc: Use image node_id 37 for calling the DebuggerV2PluginTest obj's underlying member method code with example usage: obj.testServeGraphOpInfoForOpWithNoInputs() without return types