code: def fix_frame_records_filenames(records):
      """Try to fix the filenames in each record from inspect.getinnerframes().
  
      Particularly, modules loaded from within zip files have useless filenames
      attached to their code object, and inspect.getinnerframes() just uses it.
      """
      fixed_records = []
      for frame, filename, line_no, func_name, lines, index in records:
          # Look inside the frame's globals dictionary for __file__, which should
          # be better.
          better_fn = frame.f_globals.get("__file__", None)
          if isinstance(better_fn, str):
              # Check the type just in case someone did something weird with
              # __file__. It might also be None if the error occurred during
              # import.
              filename = better_fn
          fixed_records.append(
              (frame, filename, line_no, func_name, lines, index)
          )
      return fixed_records
  
file_path: catboost/contrib/python/scikit-learn/py2/sklearn/externals/joblib/format_stack.py
imports: import inspect
  import keyword
  import linecache
  import os
  import pydoc
  import sys
  import time
  import tokenize
  import traceback
label_desc: Use image node_id 4 for calling a global function with example usage: fix_frame_records_filenames(records) and returns: fixed_records