code: def test_als_pyspark_functional(
      notebooks, output_notebook, kernel_name
  ):
      notebook_path = notebooks["als_pyspark"]
      execute_notebook(
          notebook_path,
          output_notebook,
          kernel_name=kernel_name,
          parameters=dict(TOP_K=10, MOVIELENS_DATA_SIZE="1m"),
      )
      results = read_notebook(output_notebook)
  
      assert results["map"] == pytest.approx(
          0.00201, rel=TOL, abs=ABS_TOL
      )
      assert results["ndcg"] == pytest.approx(
          0.02516, rel=TOL, abs=ABS_TOL
      )
      assert results["precision"] == pytest.approx(
          0.03172, rel=TOL, abs=ABS_TOL
      )
      assert results["recall"] == pytest.approx(
          0.009302, rel=TOL, abs=ABS_TOL
      )
      assert results["rmse"] == pytest.approx(
          0.8621, rel=TOL, abs=ABS_TOL
      )
      assert results["mae"] == pytest.approx(
          0.68023, rel=TOL, abs=ABS_TOL
      )
      assert results["exp_var"] == pytest.approx(
          0.4094, rel=TOL, abs=ABS_TOL
      )
      assert results["rsquared"] == pytest.approx(
          0.4038, rel=TOL, abs=ABS_TOL
      )
  
imports: import os
  import sys
  import pytest
  from recommenders.utils.notebook_utils import execute_notebook, read_notebook
label_desc: Use image node_id 1 for calling a global function with example usage: test_als_pyspark_functional(notebooks, output_notebook, kernel_name) without return types