class_docstr: A class for creating SASRec specific dataset used during
  train, validation and testing.
  
  Attributes:
      usernum: integer, total number of users
      itemnum: integer, total number of items
      User: dict, all the users (keys) with items as values
      Items: set of all the items
      user_train: dict, subset of User that are used for training
      user_valid: dict, subset of User that are used for validation
      user_test: dict, subset of User that are used for testing
      col_sep: column separator in the data file
      filename: data filename
class_docstr_tok: ["A","class","for","creating","SASRec","specific","dataset","used","during","train",",","validation","and","testing",".","Attributes",":","usernum",":","integer",",","total","number","of","users","itemnum",":","integer",",","total","number","of","items","User",":","dict",",","all","the","users","(","keys",")","with","items","as","values","Items",":","set","of","all","the","items","user_train",":","dict",",","subset","of","User","that","are","used","for","training","user_valid",":","dict",",","subset","of","User","that","are","used","for","validation","user_test",":","dict",",","subset","of","User","that","are","used","for","testing","col_sep",":","column","separator","in","the","data","file","filename",":","data","filename"]
code: def split(self, **kwargs):
      self.filename = kwargs.get("filename", self.filename)
      if not self.filename:
          raise ValueError("Filename is required")
  
      if self.with_time:
          self.data_partition_with_time()
      else:
          self.data_partition()
  
imports: from collections import defaultdict
label_desc: Use image node_id 2 for calling the SASRecDataSet obj's underlying member method code with example usage: obj.split() without return types