def switch_mode(mode_info_ns):
    """Switch to specific mode according to reset info data.

    Parameters
    ==========
    mode_info_ns (loopman.exception.ResetAppException)
        has attributes containing data about mode to be
        switched to.
    """
    mode = GENERAL_NS.mode_name = mode_info_ns.mode

    if mode == 'record':
        record.set_behaviour(SERVICES_NS, mode_info_ns)

    elif mode == 'play':
        play.set_behaviour(SERVICES_NS, mode_info_ns)

    elif mode == 'normal':
        normal.set_behaviour(SERVICES_NS)
Switch to specific mode according to reset info data.

    Parameters
    ==========
    mode_info_ns (loopman.exception.ResetAppException)
        has attributes containing data about mode to be
        switched to.
    
nodezator/pygamesetup/__init__.py