code: def prune_feed_map(meta_graph, feed_map):
      """Function to prune the feedmap of nodes which no longer exist."""
      node_names = [x.name + ":0" for x in meta_graph.graph_def.node]
      keys_to_delete = []
      for k, _ in feed_map.items():
          if k not in node_names:
              keys_to_delete.append(k)
      for k in keys_to_delete:
          del feed_map[k]
  
file_path: hub/tensorflow_hub/meta_graph_lib.py
imports: import re
  from absl import logging
  import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: prune_feed_map(meta_graph, feed_map) without return types