code: def print_collection(collection, scope):
      if scope is not None:
          print("Scope: %s" % scope)
      for x in tf.get_collection(collection, scope=scope + "/"):
          name = x.name
          if scope is not None:
              name = name[len(scope) + 1 :]
          print("%s %s" % (name, x.shape))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import warnings
  from contextlib import contextmanager
  from .version_utils import tf_later_than
label_desc: Use image node_id 1 for calling a global function with example usage: print_collection(collection, scope) without return types