class_docstr: A stack of TraceableObjects.
class_docstr_tok: ["A","stack","of","TraceableObjects","."]
docstr: Constructor.
  
  Args:
    existing_stack: [TraceableObject, ...] If provided, this object will
      set its new stack to a SHALLOW COPY of existing_stack.
docstr_tok: ["Constructor",".","Args",":","existing_stack",":","[","TraceableObject",",","...","]","If","provided",",","this","object","will","set","its","new","stack","to","a","SHALLOW","COPY","of","existing_stack","."]
code: def __init__(
      self,
      existing_stack: Optional[list[TraceableObject[T]]] = None,
  ):
      """Constructor.
  
      Args:
        existing_stack: [TraceableObject, ...] If provided, this object will
          set its new stack to a SHALLOW COPY of existing_stack.
      """
      self._stack: list[TraceableObject[T]] = (
          existing_stack[:] if existing_stack else []
      )
  
file_path: tensorflow-upstream/tensorflow/python/framework/traceable_stack.py
imports: from collections.abc import Iterator
  import inspect
  import types
  from typing import cast, Generic, Optional, TypeVar
label_desc: Use image node_id 1 to create a new TraceableStack object from inherited base classes: Generic with example: obj = TraceableStack(existing_stack)