code: def clear_all():
      
  
      frame = inspect.currentframe().f_back
      try:
          if frame.f_globals.get('variables_order'):
              # we should avoid to declare symbols twice !
              del frame.f_globals['variables_order']
          if frame.f_globals.get('parameters_order'):
              # we should avoid to declare symbols twice !
              del frame.f_globals['parameters_order']
      finally:
          del frame
docs: Clears all parameters, variables, and shocks defined previously