def set_mode(mode_input):
    """
    Setter of mode of mapping based on mode input

    Parameters:
        (bool) mode_input: The mode input

    Returns:
        (bool) mode: The result mode  
    """
    mode = None
    if mode_input is not None and isinstance(mode_input, bool) and mode_input == True:
        mode = mode_input
    else:
        mode = None
    
    return mode