code: def test_init_spark_rating_eval(spark_data):
      df_true, df_pred = spark_data
      evaluator = SparkRatingEvaluation(df_true, df_pred)
      assert evaluator is not None
  
imports: import pytest
  import numpy
  import pandas
  from pandas.util.testing import assert_frame_equal
  from recommenders.evaluation.python_evaluation import precision_at_k, recall_at_k, ndcg_at_k, map_at_k, map
label_desc: Use image node_id 4 for calling a global function with example usage: test_init_spark_rating_eval(spark_data) without return types