def METHOD_NAME():
    env_variables = {
        "some_env_1": "some-value",
        "SOMETHING": "ELSE",
        "and_another": "like_this",
    }
    function = mlrun.new_function(
        "function-name", "function-project", kind=mlrun.runtimes.RuntimeKinds.job
    )
    assert function.spec.env == []
    # Using a dictionary
    function.apply(mlrun.platforms.set_env_variables(env_variables))
    env_dict = {var["name"]: var.get("value") for var in function.spec.env}
    assert env_dict == env_variables
    function = mlrun.new_function(
        "function-name", "function-project", kind=mlrun.runtimes.RuntimeKinds.job
    )
    assert function.spec.env == []
    # And using key=value parameters
    function.apply(mlrun.platforms.set_env_variables(**env_variables))
    env_dict = {var["name"]: var.get("value") for var in function.spec.env}
    assert env_dict == env_variables