def get_samples(select_samples: list, avail_samples: list) -> list:
    """Get while checking the validity of the requested samples

    :param select_samples: The selected samples
    :param avail_samples: The list of all available samples based on the range
    :return: The selected samples, verified
    """

    # Sample number has to be positive
    if True in [_ < 0 for _ in select_samples]:
        raise ValueError(
            "Number of samples with -ns has to be strictly positive!")
    # Sample number has to be within the available sample
    elif False in [_ in avail_samples for _ in select_samples]:
        raise ValueError(
            "Some or all selected samples are not available in the design")

    return select_samples