code: def format_frame_source(previous_frame, **kwargs):
      """Construct a string describing the location at which a call was made
  
      Parameters
      ----------
      previous_frame: Frame
          A frame depicting the location at which a call was made
      **kwargs: Dict
          Any additional kwargs to supply to :func:`reporting.stringify_frame_source`
  
      Returns
      -------
      The stringified frame source information of `previous_frame`"""
      source = inspect.getframeinfo(previous_frame)
      src_script, src_line_no, src_func, src_class = (
          source[0],
          source[1],
          source[2],
          None,
      )
  
      with suppress(AttributeError, KeyError):
          src_class = type(previous_frame.f_locals["self"]).__name__
  
      return stringify_frame_source(
          src_script, src_line_no, src_func, src_class, **kwargs
      )
  
imports: from hyperparameter_hunter.i_o import exceptions
  from hyperparameter_hunter.space.dimensions import Categorical
  from hyperparameter_hunter.settings import G
  from hyperparameter_hunter.utils.general_utils import now_time, expand_mins_secs
  from contextlib import suppress
  from datetime import datetime
  import inspect
  import logging
  import os.path
  import sys
  from typing import List
label_desc: Use image node_id 3 for calling a global function with example usage: format_frame_source(previous_frame) and returns: stringify_frame_source