code: def _get_non_input_names(subgraph: tf.compat.v1.GraphDef) -> Set[str]:
      non_input_names = {
          node.name
          for node in subgraph.node
          if not _is_placeholder_op(node)
      }
      return non_input_names
  
imports: import collections
  from typing import Dict, List, Mapping, Set
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.experimental.distributed_inference.graphdef_experiments.subgraph_partitioning import execution_spec
label_desc: Use image node_id 16 for calling a global function with example usage: _get_non_input_names(subgraph) and returns: non_input_names