code: def test_criteo_load_spark_df_sample(spark, criteo_first_row):
      df = criteo.load_spark_df(spark, size="sample")
      assert df.count() == 100000
      assert len(df.columns) == 40
      first_row = df.limit(1).collect()[0].asDict()
      assert first_row == criteo_first_row
  
file_path: recommenders/tests/data_validation/recommenders/datasets/test_criteo.py
imports: import os
  import gc
  import pytest
  import pandas
  from recommenders.datasets import criteo
label_desc: Use image node_id 5 for calling a global function with example usage: test_criteo_load_spark_df_sample(spark, criteo_first_row) without return types