code: def test_inverse_itemseq(self):
      config_dict = {
          "model": "SHAN",
          "dataset": "seq_dataset",
          "data_path": current_path,
          "load_col": None,
          "train_neg_sample_args": None,
          "transform": "inverse_itemseq",
          "eval_args": {
              "split": {"RS": [0.3, 0.3, 0.4]},
              "order": "TO",
          },
      }
      train_dataset, valid_dataset, test_dataset = split_dataset(
          config_dict=config_dict
      )
      transform = new_transform(config_dict=config_dict)
  
      train_transform_interaction = transform(
          train_dataset, train_dataset.inter_feat
      )
      assert (
          train_transform_interaction[transform.INVERSE_ITEM_SEQ][
              :, -3:
          ].numpy()
          == [
              [0, 0, 1],
              [0, 1, 2],
              [1, 2, 3],
              [0, 0, 3],
              [0, 0, 4],
              [0, 4, 5],
              [0, 0, 4],
          ]
      ).all()
  
      valid_transform_interaction = transform(
          valid_dataset, valid_dataset.inter_feat
      )
      assert (
          valid_transform_interaction[transform.INVERSE_ITEM_SEQ][
              :, -5:
          ].numpy()
          == [[0, 1, 2, 3, 4], [1, 2, 3, 4, 5], [0, 0, 4, 5, 6]]
      ).all()
  
      test_transform_interaction = transform(
          test_dataset, test_dataset.inter_feat
      )
      assert (
          test_transform_interaction[transform.INVERSE_ITEM_SEQ][
              :, -7:
          ].numpy()
          == [
              [0, 1, 2, 3, 4, 5, 6],
              [1, 2, 3, 4, 5, 6, 7],
              [0, 0, 0, 4, 5, 6, 7],
              [0, 0, 0, 0, 0, 4, 5],
          ]
      ).all()
  
file_path: RecBole/tests/data/test_transform.py
imports: import logging
  import os
  import math
  import numpy
  import pytest
  from recbole.config import Config
  from recbole.data import create_dataset
  from recbole.utils import init_seed
  from recbole.data.transform import construct_transform
label_desc: Use image node_id 2 for calling the TestTransform obj's underlying member method code with example usage: obj.test_inverse_itemseq() without return types