class_docstr: Class that defines data loader
class_docstr_tok: ["Class","that","defines","data","loader"]
docstr: Get one batch of the data
  Returns:
      None
docstr_tok: ["Get","one","batch","of","the","data","Returns",":","None"]
code: def get_batch(self):
      """
      Get one batch of the data
      Returns:
          None
      """
      if self.sample_count + self.batch_size > self.n_train:
          if self.loop:
              self.reset()
          else:
              raise StopIteration("Ran out of data")
  
      batch_x = []
      batch_y = []
      for _ in range(self.batch_size):
          c_i = int(self.random_index[self.sample_count])
          batch_x.append(self.data[c_i : c_i + self.seq_len])
          batch_y.append(self.data[c_i + 1 : c_i + self.seq_len + 1])
          self.sample_count += 1
      batch = (np.array(batch_x), np.array(batch_y))
  
      return batch
  
file_path: nlp-architect/nlp_architect/data/ptb.py
imports: import os
  import sys
  import numpy
  import urllib.request
label_desc: Use image node_id 5 for calling the PTBDataLoader obj's underlying member method code with example usage: obj.get_batch() and returns: batch