code: def spark_dataset(spark):
      """Get spark dataframe"""
  
      return spark.createDataFrame(
          pd.DataFrame(
              {
                  DEFAULT_USER_COL: np.random.randint(1, 5, NUM_ROWS),
                  DEFAULT_ITEM_COL: np.random.randint(1, 15, NUM_ROWS),
                  DEFAULT_RATING_COL: np.random.randint(1, 5, NUM_ROWS),
                  DEFAULT_TIMESTAMP_COL: np.random.randint(
                      1, 1000, NUM_ROWS
                  )
                  + np.datetime64("2018-01-01"),
              }
          )
      )
  
file_path: recommenders/tests/unit/recommenders/datasets/test_spark_splitter.py
imports: import pytest
  import numpy
  import pandas
  from recommenders.utils.constants import DEFAULT_USER_COL, DEFAULT_ITEM_COL, DEFAULT_RATING_COL, DEFAULT_TIMESTAMP_COL
label_desc: Use image node_id 1 for calling a global function with example usage: spark_dataset(spark) and returns: spark