code: def filter_collections(meta_graph, collections):
      collections = frozenset(collections)
      for name in list(meta_graph.collection_def.keys()):
          if name not in collections:
              del meta_graph.collection_def[name]
  
file_path: hub/tensorflow_hub/meta_graph_lib.py
imports: import re
  from absl import logging
  import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: filter_collections(meta_graph, collections) without return types