code: def test_prepare_data():
      data_dir = os.path.join("tests", "resources", "deeprec", "sasrec")
      dataset = "reviews_Electronics_5"
      reviews_name = dataset + ".json"
      outfile = os.path.join(data_dir, dataset + ".txt")
  
      reviews_file = os.path.join(data_dir, reviews_name)
      download_and_extract(reviews_name, reviews_file)
      reviews_output = _reviews_preprocessing(reviews_file)
      _, _ = data_process_with_time(
          reviews_output, outfile, K=10, sep="\t"
      )
  
      # initiate a dataset class
      data = SASRecDataSet(filename=outfile, col_sep="\t")
  
      # create train, validation and test splits
      data.split()
  
      assert len(data.user_train) > 0
      assert len(data.user_valid) > 0
      assert len(data.user_test) > 0
  
file_path: recommenders/tests/unit/recommenders/models/test_sasrec_model.py
imports: import os
  import pytest
  from collections import defaultdict
label_desc: Use image node_id 3 for calling a global function with example usage: test_prepare_data() without return types