code: def test_split_pandas_data(pandas_dummy_timestamp):
      splits = split_pandas_data_with_ratios(
          pandas_dummy_timestamp, ratios=[0.5, 0.5]
      )
      assert len(splits[0]) == 5
      assert len(splits[1]) == 5
  
      splits = split_pandas_data_with_ratios(
          pandas_dummy_timestamp, ratios=[0.12, 0.36, 0.52]
      )
      shape = pandas_dummy_timestamp.shape[0]
      assert len(splits[0]) == round(shape * 0.12)
      assert len(splits[1]) == round(shape * 0.36)
      assert len(splits[2]) == round(shape * 0.52)
  
      with pytest.raises(ValueError):
          splits = split_pandas_data_with_ratios(
              pandas_dummy_timestamp, ratios=[0.6, 0.2, 0.4]
          )
  
file_path: recommenders/tests/unit/recommenders/datasets/test_python_splitter.py
imports: import pytest
  import pandas
  import numpy
  from recommenders.utils.constants import DEFAULT_USER_COL, DEFAULT_ITEM_COL, DEFAULT_RATING_COL, DEFAULT_TIMESTAMP_COL
  from recommenders.datasets.split_utils import min_rating_filter_pandas, split_pandas_data_with_ratios
  from recommenders.datasets.python_splitters import python_chrono_split, python_random_split, python_stratified_split, numpy_stratified_split
label_desc: Use image node_id 5 for calling a global function with example usage: test_split_pandas_data(pandas_dummy_timestamp) without return types