code: def _get_caller_globals_and_locals():
      
      caller_frame = inspect.stack()[2]
      myglobals = caller_frame[0].f_globals
      mylocals = caller_frame[0].f_locals
      return myglobals, mylocals
docs: Returns the globals and locals of the calling frame.
  
      Is there an alternative to frame hacking here?