def METHOD_NAME():
    op = InsertionVoltageStepQuery()
    q = op.query(
        stability_charge_min=0,
        stability_charge_max=5,
        stability_discharge_min=0,
        stability_discharge_max=5,
    )
    fields = [
        "stability_charge",
        "stability_discharge",
    ]
    assert q == {"criteria": {field: {"$gte": 0, "$lte": 5} for field in fields}}
    with ScratchDir("."):
        dumpfn(op, "temp.json")
        new_op = loadfn("temp.json")
        q = new_op.query(
            stability_charge_min=0,
            stability_charge_max=5,
            stability_discharge_min=0,
            stability_discharge_max=5,
        )
        assert q == {"criteria": {field: {"$gte": 0, "$lte": 5} for field in fields}}