code: def _fill_object_graph_proto(
      trackable_data: List[_TrackableData],
  ) -> trackable_object_graph_pb2.TrackableObjectGraph:
      """Name non-slot `Trackable`s and add them to `object_graph_proto`."""
      object_graph_proto = (
          trackable_object_graph_pb2.TrackableObjectGraph()
      )
      for checkpoint_id, td in enumerate(trackable_data):
          assert td.node_id == checkpoint_id
          object_graph_proto.nodes.add(
              slot_variables=td.slot_variable_proto,
              children=td.children_proto,
          )
      return object_graph_proto
  
imports: import collections
  from typing import Any, Callable, List, Optional, Tuple, Mapping, Union, Dict
  from tensorflow.core.protobuf import trackable_object_graph_pb2
  from tensorflow.python.checkpoint import graph_view
  from tensorflow.python.checkpoint import save_util_v1
  from tensorflow.python.checkpoint import saveable_compat
  from tensorflow.python.checkpoint import util
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.saved_model import registration
  from tensorflow.python.trackable import base
  from tensorflow.python.trackable import python_state
  from tensorflow.python.trackable import trackable_utils
  from tensorflow.python.training.saving import saveable_object
  from tensorflow.python.training.saving import saveable_object_util
  from tensorflow.python.types import core
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 3 for calling a global function with example usage: _fill_object_graph_proto(trackable_data) and returns: object_graph_proto