code: def get_debug_info(nodes_to_debug_info_func, converted_graph):
      """Returns the debug info for the original nodes in the `converted_graph`.
  
      Args:
        nodes_to_debug_info_func: The method to collect the op debug info for the
          nodes.
        converted_graph: A `GraphDef` after optimization and transformation.
  
      Returns:
        `GraphDebugInfo` for all the original nodes in `converted_graph`.
      """
      if not nodes_to_debug_info_func:
          return None
  
      # Collect all the debug info nodes from the converted_graph
      original_nodes = set()
      for node in converted_graph.node:
          debug_nodes = node.experimental_debug_info.original_node_names
          debug_funcs = node.experimental_debug_info.original_func_names
          # If the `original_node_names` are empty, uses the node name directly.
          if not debug_nodes:
              original_nodes.add(("", node.name))
          else:
              for i in range(len(debug_nodes)):
                  debug_func = (
                      "" if i >= len(debug_funcs) else debug_funcs[i]
                  )
                  original_nodes.add((debug_func, debug_nodes[i]))
  
      # Convert the nodes to the debug info proto object.
      return nodes_to_debug_info_func(original_nodes)
  
imports: import copy
  import datetime
  import sys
  from absl import logging
  import flatbuffers
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.lite.python import conversion_metadata_schema_py_generated
  from tensorflow.lite.python import schema_py_generated
  from tensorflow.lite.python import schema_util
  from tensorflow.lite.python import tflite_keras_util
  from tensorflow.lite.python.op_hint import convert_op_hints_to_stubs
  from tensorflow.lite.python.op_hint import find_all_hinted_output_nodes
  from tensorflow.lite.tools import flatbuffer_utils
  from tensorflow.python.eager import function
  from tensorflow.python.framework import convert_to_constants
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import error_interpolation
  from tensorflow.python.grappler import tf_optimizer
  from tensorflow.python.training.saver import export_meta_graph
label_desc: Use image node_id 13 for calling a global function with example usage: get_debug_info(nodes_to_debug_info_func, converted_graph) and returns: nodes_to_debug_info_func, None