class_docstr: Logger class
class_docstr_tok: ["Logger","class"]
docstr: Return the name of the class that invoked the logger
docstr_tok: ["Return","the","name","of","the","class","that","invoked","the","logger"]
code: def _invoked_from(self, level: int = 5) -> str:
      """Return the name of the class that invoked the logger"""
      calling_class = None
      for frame_info in inspect.stack()[1:]:
          frame_locals = frame_info[0].f_locals
          calling_instance = frame_locals.get("self")
          if (
              calling_instance
              and calling_instance.__class__ != self.__class__
          ):
              calling_class = calling_instance.__class__.__name__
              break
          level -= 1
          if level <= 0:
              break
      return calling_class
  
file_path: pandas-ai/pandasai/helpers/logger.py
imports: import inspect
  import time
  import sys
  from typing import List
  import logging
  from .path import find_closest
  from pydantic import BaseModel
label_desc: Use image node_id 3 for calling the Logger obj's underlying member method code with example usage: obj._invoked_from(level) and returns: calling_class