code: def get_variable_collections(variables_collections, name):
      if isinstance(variables_collections, dict):
          variable_collections = variables_collections.get(name, None)
      else:
          variable_collections = variables_collections
      return variable_collections
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from collections import namedtuple
  from collections import OrderedDict
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import variables
label_desc: Use image node_id 9 for calling a global function with example usage: get_variable_collections(variables_collections, name) and returns: variable_collections