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 get_default(self) -> Optional[T]:
      return self.stack[-1] if self.stack else None
  
file_path: tensorflow/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 2 for calling the DefaultStack obj's underlying member method code with example usage: obj.get_default() and returns: unknown