docs: def get_outer_frame_variables():
      """ Get a dict of local and global variables of the first outer frame from another file. """
      cur_filename = inspect.getframeinfo(inspect.currentframe()).filename
      outer_frame = next(f
                         for f in inspect.getouterframes(inspect.currentframe())
                         if f.filename != cur_filename)
      variables = {}
      variables.update(outer_frame.frame.f_globals)
      variables.update(outer_frame.frame.f_locals)
      return variables