code: def testGraphOpCreationDigestWithInputsAndDeviceNameToJson(self):
      op_creation_digest = debug_events_reader.GraphOpCreationDigest(
          1234,
          5678,
          "deadbeef",
          "FooOp",
          "Model_1/Foo_2",
          [135],
          "machine.cluster",
          ("a1", "a2"),
          input_names=["Bar_1", "Qux_2"],
          device_name="/device:GPU:0",
      )
      json = op_creation_digest.to_json()
      self.jsonRoundTripCheck(json)
      self.assertEqual(json["wall_time"], 1234)
      self.assertEqual(json["graph_id"], "deadbeef")
      self.assertEqual(json["op_type"], "FooOp")
      self.assertEqual(json["op_name"], "Model_1/Foo_2")
      self.assertEqual(json["output_tensor_ids"], (135,))
      self.assertEqual(json["host_name"], "machine.cluster")
      self.assertEqual(json["stack_frame_ids"], ("a1", "a2"))
      self.assertEqual(json["input_names"], ("Bar_1", "Qux_2"))
      self.assertEqual(json["device_name"], "/device:GPU:0")
  
imports: import glob
  import json
  import os
  import re
  import threading
  import time
  from absl.testing import parameterized
  from tensorflow.core.protobuf import debug_event_pb2
  from tensorflow.python.debug.lib import debug_events_reader
  from tensorflow.python.debug.lib import debug_events_writer
  from tensorflow.python.debug.lib import dumping_callback_test_lib
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import versions
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 12 for calling the DataObjectsTest obj's underlying member method code with example usage: obj.testGraphOpCreationDigestWithInputsAndDeviceNameToJson() without return types