code: def _travel_graph(self, outputs):
      for op in outputs:
          if all([i.const for i in op.inputs]):
              self.run_list.append(op)
              op.resolved = True
              op.const = True
          elif all([i.resolved for i in op.inputs]):
              self.token_list.append(Token(op))
              op.resolved = True
          else:
              for inp in filter(lambda i: not i.resolved, op.inputs):
                  self._travel_graph([inp])
              if all([i.const for i in op.inputs]):
                  self.run_list.append(op)
                  op.const = True
              else:
                  self.token_list.append(Token(op))
              op.resolved = True
  
imports: import numpy
  import tensorflow.compat.v1
  from tensorflow.core.framework.tensor_pb2 import TensorProto
  from tensorflow.core.framework.tensor_shape_pb2 import TensorShapeProto
label_desc: Use image node_id 9 for calling the RefineGraph obj's underlying member method code with example usage: obj._travel_graph(outputs) without return types