code: def get_dict_from_collection(collection_name):
      """Gets a dictionary from a graph collection.
  
      Args:
        collection_name: A collection name to read a dictionary from
  
      Returns:
        A dictionary with string keys and tensor values
      """
      key_collection = collection_name + "_keys"
      value_collection = collection_name + "_values"
      keys = tf.get_collection(key_collection)
      values = tf.get_collection(value_collection)
      return dict(zip(keys, values))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: get_dict_from_collection(collection_name) and returns: dict