class_docstr: Logger class
class_docstr_tok: ["Logger","class"]
docstr: Calculate the time difference since the last log
docstr_tok: ["Calculate","the","time","difference","since","the","last","log"]
code: def _calculate_time_diff(self):
      """Calculate the time difference since the last log"""
      time_diff = time.time() - self._last_time
      self._last_time = time.time()
      return time_diff
  
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 4 for calling the Logger obj's underlying member method code with example usage: obj._calculate_time_diff() and returns: time_diff