code: def __getitem__(self, idx):
      batch_x = self.x[
          idx * self.batch_size : (idx + 1) * self.batch_size
      ]
      batch_y = self.y[
          idx * self.batch_size : (idx + 1) * self.batch_size
      ]
  
      return self.p.transform(batch_x, batch_y)
  
file_path: ktrain/ktrain/text/ner/dataset.py
imports: from ...dataset import SequenceDataset
  from ...imports import *
label_desc: Use image node_id 3 for calling the NERSequence obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: self