def is_position_in_coding_feature(position, cds_features):
    """Checks whether the given position lies inside of a coding feature
    in the given genome record.
    """
    for feature in cds_features:
        if (feature.location.start <= position and
                position < feature.location.end):
            return True
    return False