def METHOD_NAME():
    new_formula = FormulaHandler.rename_field_references_in_formula_string(
        "field('a')",
        {},
        field_names_to_replace_with_id_refs={"a": 1},
    )
    assert new_formula == "field_by_id(1)"