code: def __init__(
      self,
      source,
      device="cpu",
      bptt=10,
      batch_size=20,
      evaluation=False,
  ):
      self.evaluation = evaluation
      self.bptt = bptt
      self.batch_size = batch_size
      self.device = device
      if isinstance(source.X, Variable):
          data = source.X.data.long()
      else:
          data = torch.LongTensor(source.X)
      self.batches = self.batchify(data, batch_size)
  
file_path: skorch/examples/word_language_model/data.py
imports: import os
  from skorch.utils import to_device
  import torch
  from torch.autograd import Variable
label_desc: Use image node_id 1 to create a new Loader object  with example: obj = Loader(source, device, bptt, batch_size, evaluation)