class_docstr: Format for numpy array
  
  Parameters
  ----------
  X : 2D array
      The input matrix
  y : 2D array
      The one-hot encoded target
class_docstr_tok: ["Format","for","numpy","array","Parameters","--","--","--","--","--","X",":","2D","array","The","input","matrix","y",":","2D","array","The","one-hot","encoded","target"]
code: def __len__(self):
      return len(self.x)
  
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 2 for calling the TorchDataset obj's underlying member method code with example usage: obj.__len__() and returns: len