def is_pseudogene(gene, feature):
    """
    Check if the given feature is a pseudogene. This is determined by check
    if the feature is labeled as a psuedogene or the gene it is a transcript
    from a pseudogene.
    """

    raw_notes = feature.qualifiers.get("note", [])
    raw_notes.extend(gene.qualifiers.get("note", []))
    return any("pseudogene" in n for n in raw_notes)