class_docstr: Container for tracking whether a property is in a cached state.
class_docstr_tok: ["Container","for","tracking","whether","a","property","is","in","a","cached","state","."]
code: def mark_as(self, value):  # type: (MutationSentinel, bool) -> bool
      may_affect_upstream = value != self._in_cached_state
      self._in_cached_state = value
      return may_affect_upstream
  
file_path: tensorflow/tensorflow/python/trackable/layer_utils.py
imports: import collections
  import weakref
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 1 for calling the MutationSentinel obj's underlying member method code with example usage: obj.mark_as(value) and returns: may_affect_upstream