class_docstr: Wrapper around TF_ImportGraphDefOptions that handles deletion.
class_docstr_tok: ["Wrapper","around","TF_ImportGraphDefOptions","that","handles","deletion","."]
code: def __del__(self):
      # Note: when we're destructing the global context (i.e when the process is
      # terminating) we can have already deleted other modules.
      if (
          c_api is not None
          and c_api.TF_DeleteImportGraphDefOptions is not None
      ):
          c_api.TF_DeleteImportGraphDefOptions(self.options)
  
imports: import contextlib
  from tensorflow.core.framework import api_def_pb2
  from tensorflow.core.framework import op_def_pb2
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.util import compat
  from tensorflow.python.util import tf_contextlib
label_desc: Use image node_id 2 for calling the ScopedTFImportGraphDefOptions obj's underlying member method code with example usage: obj.__del__() without return types