import pytest


@pytest.fixture
def node():
    return {
        "id": "MONDO:0020121",
        "category": "biolink:Disease",
        "name": "muscular dystrophy",
        "full_name": None,
        "deprecated": None,
        "description": "Muscular dystrophy (MD) refers to a group of more than 30 genetic diseases characterized by progressive weakness and degeneration of the skeletal muscles that control movement. Some forms of MD are seen in newborns, infants or children, while others have late-onset and may not appear until middle age or later. The disorders differ in terms of the distribution and extent of muscle weakness (some forms of MD also affect cardiac muscle), age of onset, rate of progression, and pattern of inheritance. The prognosis for people with MD varies according to the type and progression of the disorder. There is no specific treatment to stop or reverse any form of MD. Treatment is supportive and may include physical therapy, respiratory therapy, speech therapy, orthopedic appliances used for support, corrective orthopedic surgery, and medicationsincluding corticosteroids, anticonvulsants (seizure medications), immunosuppressants, and antibiotics. Some individuals may need assisted ventilation to treat respiratory muscle weaknessor a pacemaker for cardiac (heart)abnormalities.",
        "xref": [
            "DOID:9884",
            "GARD:7922",
            "ICD10CM:G71.0",
            "ICD9:359.1",
            "MEDGEN:44527",
            "MESH:D009136",
            "MedDRA:10028356",
            "NANDO:1200486",
            "NANDO:2100233",
            "NCIT:C84910",
            "Orphanet:98473",
            "SCTID:73297009",
            "UMLS:C0026850",
            "icd11.foundation:1464662404",
        ],
        "provided_by": "phenio_nodes",
        "in_taxon": None,
        "in_taxon_label": None,
        "symbol": None,
        "synonym": None,
        "broad_synonym": None,
        "exact_synonym": None,
        "narrow_synonym": None,
        "related_synonym": None,
        "subsets": ["disease_grouping", "gard_rare", "ordo_group_of_disorders", "otar", "rare"],
        "uri": "http://purl.obolibrary.org/obo/MONDO_0020121",
        "iri": None,
        "namespace": "MONDO",
        "has_phenotype": None,
        "has_phenotype_label": None,
        "has_phenotype_closure": None,
        "has_phenotype_closure_label": None,
        "has_phenotype_count": 0,
        "inheritance": None,
        "causal_gene": [],
        "causes_disease": None,
        "mappings": [
            {"id": "DOID:9884", "url": "http://purl.obolibrary.org/obo/DOID_9884"},
            {"id": "ICD10CM:G71.0", "url": "https://icd.codes/icd10cm/G71.0"},
            {"id": "MEDGEN:44527", "url": "http://identifiers.org/medgen/44527"},
            {"id": "NCIT:C84910", "url": "http://purl.obolibrary.org/obo/NCIT_C84910"},
            {"id": "Orphanet:98473", "url": "https://www.orpha.net/en/disease/detail/98473"},
            {"id": "SCTID:73297009", "url": "http://identifiers.org/snomedct/73297009"},
            {"id": "UMLS:C0026850", "url": "http://identifiers.org/umls/C0026850"},
            {"id": "icd11.foundation:1464662404", "url": None},
            {"id": "MESH:D009136", "url": "http://identifiers.org/mesh/D009136"},
        ],
        "external_links": [
            {"id": "DOID:9884", "url": "http://purl.obolibrary.org/obo/DOID_9884"},
            {"id": "GARD:7922", "url": "https://rarediseases.info.nih.gov/diseases/7922/index"},
            {"id": "ICD10CM:G71.0", "url": "https://icd.codes/icd10cm/G71.0"},
            {"id": "ICD9:359.1", "url": None},
            {"id": "MEDGEN:44527", "url": "http://identifiers.org/medgen/44527"},
            {"id": "MESH:D009136", "url": "http://identifiers.org/mesh/D009136"},
            {"id": "MedDRA:10028356", "url": None},
            {"id": "NANDO:1200486", "url": "http://identifiers.org/NANDO/1200486"},
            {"id": "NANDO:2100233", "url": "http://identifiers.org/NANDO/2100233"},
            {"id": "NCIT:C84910", "url": "http://purl.obolibrary.org/obo/NCIT_C84910"},
            {"id": "Orphanet:98473", "url": "https://www.orpha.net/en/disease/detail/98473"},
            {"id": "SCTID:73297009", "url": "http://identifiers.org/snomedct/73297009"},
            {"id": "UMLS:C0026850", "url": "http://identifiers.org/umls/C0026850"},
            {"id": "icd11.foundation:1464662404", "url": None},
        ],
        "provided_by_link": {
            "id": "phenio",
            "url": "https://monarch-initiative.github.io/monarch-ingest/Sources/phenio/#",
        },
        "association_counts": [
            {
                "label": "Disease to Phenotype",
                "count": 4192,
                "category": "biolink:DiseaseToPhenotypicFeatureAssociation",
            },
            {"label": "Gene to Phenotype", "count": 6475, "category": "biolink:GeneToPhenotypicFeatureAssociation"},
            {"label": "Causal Gene", "count": 126, "category": "biolink:CausalGeneToDiseaseAssociation"},
            {"label": "Correlated Gene", "count": 149, "category": "biolink:CorrelatedGeneToDiseaseAssociation"},
            {"label": "Variant to Disease", "count": 211, "category": "biolink:VariantToDiseaseAssociation"},
            {"label": "Disease Model", "count": 242, "category": "biolink:GenotypeToDiseaseAssociation"},
            {
                "label": "Medical Action",
                "count": 4,
                "category": "biolink:ChemicalOrDrugOrTreatmentToDiseaseOrPhenotypicFeatureAssociation",
            },
        ],
        "node_hierarchy": {
            "super_classes": [
                {
                    "id": "MONDO:0005336",
                    "category": "biolink:Disease",
                    "name": "myopathy",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0100546",
                    "category": "biolink:Disease",
                    "name": "hereditary neuromuscular disease",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0700223",
                    "category": "biolink:Disease",
                    "name": "hereditary skeletal muscle disorder",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
            ],
            "sub_classes": [
                {
                    "id": "MONDO:0010675",
                    "category": "biolink:Disease",
                    "name": "muscular dystrophy, cardiac type",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0010676",
                    "category": "biolink:Disease",
                    "name": "muscular dystrophy, Hemizygous lethal type",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0010677",
                    "category": "biolink:Disease",
                    "name": "muscular dystrophy, Mabry type",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0010678",
                    "category": "biolink:Disease",
                    "name": "muscular dystrophy, progressive Pectorodorsal",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0008028",
                    "category": "biolink:Disease",
                    "name": "muscular dystrophy, Barnes type",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0016106",
                    "category": "biolink:Disease",
                    "name": "progressive muscular dystrophy",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0018949",
                    "category": "biolink:Disease",
                    "name": "distal myopathy",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0019950",
                    "category": "biolink:Disease",
                    "name": "congenital muscular dystrophy",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0023204",
                    "category": "biolink:Disease",
                    "name": "Fukuda-Miyanomae-Nakata syndrome",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0100228",
                    "category": "biolink:Disease",
                    "name": "LAMA2-related muscular dystrophy",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
                {
                    "id": "MONDO:0700285",
                    "category": "biolink:Disease",
                    "name": "DMD-related muscular dystrophy",
                    "full_name": None,
                    "deprecated": None,
                    "description": None,
                    "xref": None,
                    "provided_by": None,
                    "in_taxon": None,
                    "in_taxon_label": None,
                    "symbol": None,
                    "synonym": None,
                    "broad_synonym": None,
                    "exact_synonym": None,
                    "narrow_synonym": None,
                    "related_synonym": None,
                    "subsets": None,
                    "uri": None,
                    "iri": None,
                    "namespace": None,
                    "has_phenotype": None,
                    "has_phenotype_label": None,
                    "has_phenotype_closure": None,
                    "has_phenotype_closure_label": None,
                    "has_phenotype_count": None,
                },
            ],
        },
    }
