def METHOD_NAME():
    op = ESSummaryDataQuery()
    assert op.query(
        magnetic_ordering=Ordering.FiM, is_gap_direct=True, is_metal=False
    ) == {
        "criteria": {
            "magnetic_ordering": "FiM",
            "is_gap_direct": True,
            "is_metal": False,
        }
    }
    with ScratchDir("."):
        dumpfn(op, "temp.json")
        new_op = loadfn("temp.json")
        assert new_op.query(
            magnetic_ordering=Ordering.FiM, is_gap_direct=True, is_metal=False
        ) == {
            "criteria": {
                "magnetic_ordering": "FiM",
                "is_gap_direct": True,
                "is_metal": False,
            }
        }