code: def stringify_frame_source(
      src_file,
      src_line_no,
      src_func,
      src_class,
      add_line_no=True,
      max_line_no_size=4,
      total_max_size=80,
  ):
      """Construct a string that neatly displays the location in the code at which a call was made
  
      Parameters
      ----------
      src_file: Str
          A filepath
      src_line_no: Int
          The line number in `src_file` at which the call was made
      src_func: Str
          The name of the function in `src_file` in which the call was made
      src_class: Str, or None
          If not None, the class in `src_file` in which the call was made
      add_line_no: Boolean, default=False
          If True, the line number will be included in the `source_content` result
      max_line_no_size: Int, default=4
          Total number (including padding) of characters to be occupied by `src_line_no`. For
          example, if `src_line_no`=32, and `max_line_no_size`=4, `src_line_no` will be padded to
          become '32  ' in order to occupy four characters
      total_max_size: Int, default=80
          Total number (including padding) of characters to be occupied by the `source_content` result
  
      Returns
      -------
      source_content: Str
          A formatted string containing the location in the code at which a call was made
  
      Examples
      --------
      >>> stringify_frame_source("reporting.py", 570, "stringify_frame_source", None)
      '570  - reporting.stringify_frame_source()                                       '
      >>> stringify_frame_source("reporting.py", 12, "bar", "Foo")
      '12   - reporting.Foo.bar()                                                      '
      >>> stringify_frame_source("reporting.py", 12, "bar", "Foo", add_line_no=False)
      'reporting.Foo.bar()                                                             '
      >>> stringify_frame_source("reporting.py", 12, "bar", "Foo", total_max_size=60)
      '12   - reporting.Foo.bar()                                  '"""
      source_content = ""
  
      if add_line_no is True:
          # Left-align line_no to size: max_line_no_size
          source_content += "{0:<{1}}".format(
              src_line_no, max_line_no_size
          )
          source_content += " - "
  
      script_name = os.path.splitext(os.path.basename(src_file))[0]
  
      if src_class is not None:
          source_content += "{}.{}.{}()".format(
              script_name, src_class, src_func
          )
      else:
          source_content += "{}.{}()".format(script_name, src_func)
  
      source_content = "{0:<{1}}".format(source_content, total_max_size)
  
      return source_content
  
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 4 for calling a global function with example usage: stringify_frame_source(src_file, src_line_no, src_func, src_class, add_line_no, max_line_no_size, total_max_size) and returns: source_content