class_docstr: Compatibility layer for outputs of traceback.extract_stack().
  
  Attributes:
      filename (string): filename
      lineno (int): line number
      name (string): function name
class_docstr_tok: ["Compatibility","layer","for","outputs","of","traceback.extract_stack","(",")",".","Attributes",":","filename","(","string",")",":","filename","lineno","(","int",")",":","line","number","name","(","string",")",":","function","name"]
code: def __init__(self, obj):
      if isinstance(obj, tuple):  # < 3.5
          self.filename = obj[0]
          self.lineno = obj[1]
          self.name = obj[2]
      else:  # >= 3.5 FrameSummary
          self.filename = obj.filename
          self.lineno = obj.lineno
          self.name = obj.name
  
imports: from os import path
  import sys
  import traceback
  from cupy.cuda import memory_hook
label_desc: Use image node_id 1 to create a new StackFrame object from inherited base classes: object with example: obj = StackFrame(obj)