def METHOD_NAME():
    context = _make_external_execution_context(extras={"foo": "bar"})
    assert context.get_extra("foo") == "bar"
    with pytest.raises(DagsterExtError, match="Extra `bar` is undefined"):
        context.get_extra("bar")