class_docstr: Format for csr_matrix
  
  Parameters
  ----------
  X : CSR matrix
      The input matrix
  y : 2D array
      The one-hot encoded target
class_docstr_tok: ["Format","for","csr_matrix","Parameters","--","--","--","--","--","X",":","CSR","matrix","The","input","matrix","y",":","2D","array","The","one-hot","encoded","target"]
code: def __init__(self, x, y):
      self.x = x
      self.y = y
  
imports: from torch.utils.data import Dataset
  from torch.utils.data import DataLoader, WeightedRandomSampler
  import torch
  import numpy
  import scipy
  import json
  from sklearn.utils import check_array
  import pandas
  import warnings
label_desc: Use image node_id 1 to create a new SparseTorchDataset object from inherited base classes: Dataset with example: obj = SparseTorchDataset(x, y)