docstr: Get last time mark from stack, calculate time diff with current time.
  :return: float
      Time diff calculated by last time mark with current time.
docstr_tok: ["Get","last","time","mark","from","stack",",","calculate","time","diff","with","current","time",".",":","return",":","float","Time","diff","calculated","by","last","time","mark","with","current","time","."]
code: def get_cost_time(cls):
      """
      Get last time mark from stack, calculate time diff with current time.
      :return: float
          Time diff calculated by last time mark with current time.
      """
      cost_time = time() - cls.time_marks.pop()
      return cost_time
  
imports: import logging
  from typing import Optional, Text, Dict, Any
  import re
  from logging import config
  from time import time
  from contextlib import contextmanager
  from .config import C
label_desc: Use image node_id 3 for calling the TimeInspector obj's underlying member method code with example usage: obj.get_cost_time(cls) and returns: cost_time