class_docstr: A thread-local stack of objects for providing implicit defaults.
class_docstr_tok: ["A","thread-local","stack","of","objects","for","providing","implicit","defaults","."]
code: def enforce_nesting(self) -> bool:
      return self._enforce_nesting
  
file_path: tensorflow-upstream/tensorflow/python/framework/stack.py
imports: from collections.abc import Iterator
  import threading
  from typing import Generic, Optional, TypeVar
  from tensorflow.python.util import tf_contextlib
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 5 for calling the DefaultStack obj's underlying member method code with example usage: obj.enforce_nesting() and returns: self