def METHOD_NAME():
    base = ak.Array([{"x": 1}, {"x": 2}, {"x": 3}], check_valid=True)
    what = ak.Array([1.1, 2.2, 3.3], check_valid=True)
    assert to_list(ak.operations.with_field(base, what)) == [
        {"x": 1, "1": 1.1},
        {"x": 2, "1": 2.2},
        {"x": 3, "1": 3.3},
    ]
    assert to_list(ak.operations.with_field(base, what, where="y")) == [
        {"x": 1, "y": 1.1},
        {"x": 2, "y": 2.2},
        {"x": 3, "y": 3.3},
    ]
    base["z"] = what
    assert to_list(base) == [
        {"x": 1, "z": 1.1},
        {"x": 2, "z": 2.2},
        {"x": 3, "z": 3.3},
    ]
    base["q"] = 123
    assert to_list(base) == [
        {"x": 1, "z": 1.1, "q": 123},
        {"x": 2, "z": 2.2, "q": 123},
        {"x": 3, "z": 3.3, "q": 123},
    ]
    base = ak.Array([{"x": 1}, {"x": 2}, {"x": 3}], check_valid=True)[2]
    assert to_list(ak.operations.with_field(base, 100, "y")) == {
        "x": 3,
        "y": 100,
    }