def as_ref(name, value):
    """
    Generate the dict that represents a reference tag.
    """

    dbname = name.upper()
    if name == "ncbi_taxonomy_id":
        dbname = name
    return {"attrib": {"dbname": dbname, "dbkey": str(value)}}