code: def _get_context_copy(ctx, scope):
      # contexts are stored in graph collections
      # is there a more efficient way to do this?
  
      graph = tf.get_default_graph()
  
      for name, collection in six.iteritems(graph._collections):
          if ctx in collection:
              for item in collection:
                  if item.name == scope + ctx.name:
                      return item
  
      return None
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import six
  import tensorflow
  from copy import deepcopy
  from edward.models.random_variable import RandomVariable
  from edward.models.random_variables import TransformedDistribution
  from edward.models import PointMass
  from edward.util.graphs import random_variables
  from tensorflow.core.framework import attr_value_pb2
  from tensorflow.python.framework.ops import set_shapes_for_outputs
  from tensorflow.python.util import compat
label_desc: Use image node_id 3 for calling a global function with example usage: _get_context_copy(ctx, scope) and returns: None, item