def reset_runtime():
    """Reset runtime environment.
    Best effort to reset module data to initial state.
    """
    from Pyautomators import step_registry
    from Pyautomators import matchers
    step_registry.registry = step_registry.StepRegistry()
    step_registry.setup_step_decorators(None, step_registry.registry)
    matchers.ParseMatcher.custom_types = {}
    matchers.current_matcher = matchers.ParseMatcher
