def get_bucket_ix(seq_length, bucket_range):
    """

    Returns index of a bucket for a sequence with q given length when bucket range is bucket_range

    Args:
        seq_length: lengh of sequence
        bucket_range: range of bucket

    Returns: index of a bucket

    """
    return seq_length // bucket_range + (1 if seq_length % bucket_range != 0 else 0)