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: Serialize and deserialize function.
docstr_tok: ["Serialize","and","deserialize","function","."]
code: def serialize(self, serializer):
      """Serialize and deserialize function."""
      epoch = serializer("epoch", self.epoch)
      current_position = serializer(
          "current_position", self.current_position
      )
      self.epoch = epoch
      self.current_position = current_position
  
file_path: espnet/espnet/utils/dataset.py
imports: import torch
  import torch.utils.data
label_desc: Use image node_id 6 for calling the ChainerDataLoader obj's underlying member method code with example usage: obj.serialize(serializer) without return types