class_docstr: Class representing result and status from RPC Call.
class_docstr_tok: ["Class","representing","result","and","status","from","RPC","Call","."]
code: def __del__(self):
      # Make sure the resource is deleted in the same mode as it was created in.
      if context.executing_eagerly():
          with context.eager_mode():
              gen_rpc_ops.delete_rpc_future_resource(
                  handle=self._status_or, deleter=self._deleter
              )
      else:
          with context.graph_mode():
              gen_rpc_ops.delete_rpc_future_resource(
                  handle=self._status_or, deleter=self._deleter
              )
  
imports: from typing import Optional, Sequence, Union
  import tensorflow.distribute.experimental.rpc.kernels.gen_rpc_ops
  from tensorflow.distribute.experimental.rpc.proto import tf_rpc_service_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import none_tensor
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.saved_model import nested_structure_coder
  from tensorflow.python.types import core
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 3 for calling the StatusOrResult obj's underlying member method code with example usage: obj.__del__() without return types