code: def df(spark_session):
      data_pandas = pd.DataFrame(
          {
              "make": ["Jaguar", "MG", "MINI", "Rover", "Lotus"] * 50,
              "registration": [
                  "AB98ABCD",
                  "BC99BCDF",
                  "CD00CDE",
                  "DE01DEF",
                  "EF02EFG",
              ]
              * 50,
              "year": [1998, 1999, 2000, 2001, 2002] * 50,
          }
      )
      # Turn the data into a Spark DataFrame, self.spark comes from our PySparkTest base class
      data_spark = spark_session.createDataFrame(data_pandas)
      return data_spark
  
file_path: ydata-profiling/tests/backends/spark_backend/test_sample_spark.py
imports: import pandas
  import pytest
  from pyspark.sql.types import IntegerType, StringType, StructField, StructType
  from ydata_profiling.config import Settings
  from ydata_profiling.model.spark.sample_spark import spark_get_sample
label_desc: Use image node_id 1 for calling a global function with example usage: df(spark_session) and returns: data_spark