code: def test_seq_split_by_ratio(self):
      config_dict = {
          "model": "GRU4Rec",
          "dataset": "seq_dataset",
          "data_path": current_path,
          "load_col": None,
          "train_neg_sample_args": None,
          "eval_args": {
              "split": {"RS": [0.3, 0.3, 0.4]},
              "order": "TO",
          },
      }
      train_dataset, valid_dataset, test_dataset = split_dataset(
          config_dict=config_dict
      )
      assert (
          train_dataset.inter_feat[train_dataset.uid_field].numpy()
          == [1, 1, 1, 4, 2, 2, 3]
      ).all()
      assert (
          train_dataset.inter_feat[train_dataset.item_id_list_field][
              :, :3
          ].numpy()
          == [
              [1, 0, 0],
              [1, 2, 0],
              [1, 2, 3],
              [3, 0, 0],
              [4, 0, 0],
              [4, 5, 0],
              [4, 0, 0],
          ]
      ).all()
      assert (
          train_dataset.inter_feat[train_dataset.iid_field].numpy()
          == [2, 3, 4, 4, 5, 6, 5]
      ).all()
      assert (
          train_dataset.inter_feat[
              train_dataset.item_list_length_field
          ].numpy()
          == [1, 2, 3, 1, 1, 2, 1]
      ).all()
  
      assert (
          valid_dataset.inter_feat[valid_dataset.uid_field].numpy()
          == [1, 1, 2]
      ).all()
      assert (
          valid_dataset.inter_feat[valid_dataset.item_id_list_field][
              :, :5
          ].numpy()
          == [[1, 2, 3, 4, 0], [1, 2, 3, 4, 5], [4, 5, 6, 0, 0]]
      ).all()
      assert (
          valid_dataset.inter_feat[valid_dataset.iid_field].numpy()
          == [5, 6, 7]
      ).all()
      assert (
          valid_dataset.inter_feat[
              valid_dataset.item_list_length_field
          ].numpy()
          == [4, 5, 3]
      ).all()
  
      assert (
          test_dataset.inter_feat[test_dataset.uid_field].numpy()
          == [1, 1, 2, 3]
      ).all()
      assert (
          test_dataset.inter_feat[test_dataset.item_id_list_field][
              :, :7
          ].numpy()
          == [
              [1, 2, 3, 4, 5, 6, 0],
              [1, 2, 3, 4, 5, 6, 7],
              [4, 5, 6, 7, 0, 0, 0],
              [4, 5, 0, 0, 0, 0, 0],
          ]
      ).all()
      assert (
          test_dataset.inter_feat[test_dataset.iid_field].numpy()
          == [7, 8, 8, 6]
      ).all()
      assert (
          test_dataset.inter_feat[
              test_dataset.item_list_length_field
          ].numpy()
          == [6, 7, 4, 2]
      ).all()
  
imports: import logging
  import os
  import pytest
  from recbole.config import Config
  from recbole.data import create_dataset
  from recbole.utils import init_seed
label_desc: Use image node_id 2 for calling the TestSeqDataset obj's underlying member method code with example usage: obj.test_seq_split_by_ratio() without return types