class_docstr: Pytorch dataloader in chainer style.
  
  Args:
      all args for torch.utils.data.dataloader.Dataloader
class_docstr_tok: ["Pytorch","dataloader","in","chainer","style",".","Args",":","all","args","for","torch.utils.data.dataloader.Dataloader"]
docstr: Implement next function.
docstr_tok: ["Implement","next","function","."]
code: def next(self):
      """Implement next function."""
      if self.iter is None:
          self.iter = iter(self.loader)
      try:
          ret = next(self.iter)
      except StopIteration:
          self.iter = None
          return self.next()
      self.current_position += 1
      if self.current_position == self.len:
          self.epoch = self.epoch + 1
          self.current_position = 0
      return ret
  
file_path: espnet/espnet/utils/dataset.py
imports: import torch
  import torch.utils.data
label_desc: Use image node_id 3 for calling the ChainerDataLoader obj's underlying member method code with example usage: obj.next() and returns: ret, self