code: def spark_data(rating_true, rating_pred, spark):
      df_true = spark.createDataFrame(rating_true)
      df_pred = spark.createDataFrame(rating_pred)
  
      return df_true, df_pred
  
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 1 for calling a global function with example usage: spark_data(rating_true, rating_pred, spark) and returns: df_true,  df_pred