def METHOD_NAME():
    descriptor = {
        "name": "capitals-and-schools",
        "resources": [
            {"name": "capital-invalid", "path": "data/invalid.csv"},
        ],
    }
    package = Package(descriptor)
    analysis = package.analyze(detailed=True)
    name = "capital-invalid"
    assert round(analysis[name]["averageRecordSizeInBytes"]) == 12
    assert analysis[name]["fields"] == 4
    assert list(analysis[name]["fieldStats"].keys()) == [
        "id",
        "name",
        "field3",
        "name2",
    ]
    assert analysis[name]["rows"] == 4
    assert analysis[name]["rowsWithNullValues"] == 3
    assert analysis[name]["notNullRows"] == 1
    assert analysis[name]["variableTypes"] == {"integer": 3, "string": 1}