code: def ops_to_outputs(func):
      def wrapper(*args, **kwargs):
          x = func(*args, **kwargs)
          x = collect_named_outputs(
              __outputs__, tf.get_variable_scope().name, x
          )
          return x
  
      return wrapper
  
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 20 for calling a global function with example usage: ops_to_outputs(func) and returns: wrapper, x