code: def test_operation_returned(self):
      v = variables.Variable(0)
  
      def f():
          v.assign(1, read_value=False, name="assign_to_v")
  
      f_wrapped = wrap_function.wrap_function(f, [])
      operation_to_fetch = f_wrapped.graph.get_operation_by_name(
          "assign_to_v"
      )
      f_pruned = f_wrapped.prune([], operation_to_fetch)
      self.assertEqual(
          ["assign_to_v"],
          [
              operation.name
              for operation in f_pruned.graph.control_outputs
          ],
      )
      self.assertEqual(0, v.numpy())
      f_pruned()
      self.assertEqual(1, v.numpy())
      f_wrapped.prune([], "assign_to_v")()
      f_wrapped.prune(
          [], meta_graph_pb2.TensorInfo(name="assign_to_v")
      )()
  
imports: import os
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import wrap_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import importer
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 12 for calling the WrapFunctionTest obj's underlying member method code with example usage: obj.test_operation_returned() without return types