class_docstr: Object stored in TFShouldUse-wrapped objects.
  
  When it is deleted it will emit a warning or error if its `sate` method
  has not been called by time of deletion, and Tensorflow is not executing
  eagerly or inside a tf.function (which use autodeps and resolve the
  main issues this wrapper warns about).
class_docstr_tok: ["Object","stored","in","TFShouldUse-wrapped","objects",".","When","it","is","deleted","it","will","emit","a","warning","or","error","if","its","`","sate","`","method","has","not","been","called","by","time","of","deletion",",","and","Tensorflow","is","not","executing","eagerly","or","inside","a","tf.function","(","which","use","autodeps","and","resolve","the","main","issues","this","wrapper","warns","about",")","."]
docstr: Check if the object has been sated.
docstr_tok: ["Check","if","the","object","has","been","sated","."]
code: def _check_sated(self, raise_error):
      """Check if the object has been sated."""
      if self._sated:
          return
      creation_stack = "".join(
          [
              line.rstrip()
              for line in traceback.format_stack(
                  self._stack_frame, limit=5
              )
          ]
      )
      if raise_error:
          try:
              raise RuntimeError(
                  "Object was never used (type {}): {}.  If you want to mark it as "
                  'used call its "mark_used()" method.  It was originally created '
                  "here:\n{}".format(
                      self._type, self._repr, creation_stack
                  )
              )
          finally:
              self.sate()
      else:
          tf_logging.error(
              "==================================\n"
              "Object was never used (type {}):\n{}\nIf you want to mark it as "
              'used call its "mark_used()" method.\nIt was originally created '
              "here:\n{}\n"
              "==================================".format(
                  self._type, self._repr, creation_stack
              )
          )
  
imports: import copy
  import sys
  import textwrap
  import traceback
  import types
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 3 for calling the _TFShouldUseHelper obj's underlying member method code with example usage: obj._check_sated(raise_error) without return types