def layer_mask(layer):
    """ Creates a boolean layer mask.

    Parameters:
        layer (int): Layer number.

    Returns:
        tuple: True at given layer number and False elsewhere.
    """
    return tuple(i == layer for i in range(20))