def METHOD_NAME():
    called = {}
    @op(
        config_schema={
            "int_field": Int,
            "enum_field": Enum("AnEnum", [EnumValue("ENUM_VALUE")]),
        }
    )
    def config_me(context):
        assert context.op_config["int_field"] == 2
        assert context.op_config["enum_field"] == "ENUM_VALUE"
        called["yup"] = True
    job_def = GraphDefinition(name="enum_in_job", node_defs=[config_me]).to_job()
    result = job_def.execute_in_process(
        {"ops": {"config_me": {"config": {"int_field": 2, "enum_field": "ENUM_VALUE"}}}},
    )
    assert result.success
    assert called["yup"]
    with pytest.raises(DagsterInvalidConfigError) as exc_info:
        job_def.execute_in_process(
            {"ops": {"config_me": {"config": {"int_field": 2, "enum_field": "NOPE"}}}},
        )
    assert (
        "Value at path root:ops:config_me:config:enum_field not in enum type AnEnum got NOPE"
        in str(exc_info.value)
    )