def get_cluster_from_pattern(pattern, clusters):
    """
    Helper function to return the cluster a pattern is in
    Args:
        pattern: A tuple of three values
        clusters: A list of lists of patterns
    Returns:
        The list containing the pattern
    """
    for cluster in clusters:
        if pattern in cluster:
            return cluster
    else:
        raise RuntimeError("Pattern not found in cluster")