code: def test_spearman_spark(correlation_data_num, correlation_var_types):
      cfg = Settings()
  
      res_spark = spark_spearman_compute(
          cfg,
          correlation_data_num,
          correlation_var_types,
      )
  
      res_pandas = pandas_spearman_compute(
          cfg, correlation_data_num.toPandas(), {}
      )
  
      pd.testing.assert_frame_equal(res_pandas, res_spark)
  
file_path: ydata-profiling/tests/backends/spark_backend/test_correlations_spark.py
imports: import pandas
  import pytest
  from ydata_profiling.config import Settings
  from ydata_profiling.model.correlations import Kendall
  from ydata_profiling.model.pandas.correlations_pandas import pandas_pearson_compute, pandas_spearman_compute
  from ydata_profiling.model.spark.correlations_spark import spark_pearson_compute, spark_spearman_compute
label_desc: Use image node_id 4 for calling a global function with example usage: test_spearman_spark(correlation_data_num, correlation_var_types) without return types