def METHOD_NAME(monkeypatch):
    monkeypatch.setattr("mlflow.gateway.utils._gateway_uri", None)
    valid_uri = "http://localhost"
    set_gateway_uri(valid_uri)
    assert get_gateway_uri() == valid_uri
    invalid_uri = "localhost"
    with pytest.raises(MlflowException, match="The gateway uri provided is missing required"):
        set_gateway_uri(invalid_uri)