code: def test_split_dataset_spark_condition(test_dataframe_spark):
      reference, df = split_dataset(
          test_dataframe_spark,
          split=(
              "date <"
              f" '{(datetime.today() + timedelta(days=50, hours=5)).strftime('%Y-%m-%d %H:%M:%S')}'"
          ),
          time_axis="date",
      )
  
      assert reference.count() == 51
      assert df.count() == 949
      assert reference.columns == ["date", "f1", "f2"]
      assert df.columns == ["date", "f1", "f2"]
  
file_path: popmon/tests/popmon/spark/test_split_dataset_spark.py
imports: from datetime import datetime, timedelta
  from pathlib import Path
  import pandas
  import pytest
  from popmon.pipeline.dataset_splitter import split_dataset
label_desc: Use image node_id 10 for calling a global function with example usage: test_split_dataset_spark_condition(test_dataframe_spark) without return types