code: def test_stability_curve_time_in_space_splitter():
      result, logs = stability_curve_time_in_space_splitter(
          sample_data,
          "2015-05-05",
          random_state=25,
          time_column="time",
          min_samples=0,
          space_column="space",
          space_hold_percentage=0.5,
      )
  
      train_1 = sample_data.iloc[result[0][0]]
      test_1 = sample_data.iloc[result[0][1][0]]
  
      # the training set must contain no dates after 2015-05-05
      assert len(train_1[train_1.time > "2015-05-05"]) == 0
  
      # the test sets must contain no dates before 2015-05-05
      assert len(test_1[test_1.time <= "2015-05-05"]) == 0
  
      # all space in test set must be in the training set
      assert train_1.space.isin(test_1.space.values).any()
  
file_path: fklearn/tests/validation/test_splitters.py
imports: from datetime import timedelta
  import pandas
  import pytest
  from fklearn.validation.splitters import k_fold_splitter, out_of_time_and_space_splitter, spatial_learning_curve_splitter, time_learning_curve_splitter, reverse_time_learning_curve_splitter, stability_curve_time_splitter, stability_curve_time_in_space_splitter, stability_curve_time_space_splitter, forward_stability_curve_time_splitter, time_and_space_learning_curve_splitter
label_desc: Use image node_id 8 for calling a global function with example usage: test_stability_curve_time_in_space_splitter() without return types