code: def clear_globals_reload_modules(self):
          
  
          self.code_array.clear_globals()
          self.code_array.reload_modules()
  
          # Clear result cache
          self.code_array.result_cache.clear()
docs: Clears globals and reloads modules