class_docstr: :class:`AbstractDataLoader` is an abstract object which would return a batch of data which is loaded by
  :class:`~recbole.data.interaction.Interaction` when it is iterated.
  And it is also the ancestor of all other dataloader.
  
  Args:
      config (Config): The config of dataloader.
      dataset (Dataset): The dataset of dataloader.
      sampler (Sampler): The sampler of dataloader.
      shuffle (bool, optional): Whether the dataloader will be shuffle after a round. Defaults to ``False``.
  
  Attributes:
      _dataset (Dataset): The dataset of this dataloader.
      shuffle (bool): If ``True``, dataloader will shuffle before every epoch.
      pr (int): Pointer of dataloader.
      step (int): The increment of :attr:`pr` for each batch.
      _batch_size (int): The max interaction number for all batch.
class_docstr_tok: [":","class",":","`","AbstractDataLoader","`","is","an","abstract","object","which","would","return","a","batch","of","data","which","is","loaded","by",":","class",":","`","~recbole.data.interaction.Interaction","`","when","it","is","iterated",".","And","it","is","also","the","ancestor","of","all","other","dataloader",".","Args",":","config","(","Config",")",":","The","config","of","dataloader",".","dataset","(","Dataset",")",":","The","dataset","of","dataloader",".","sampler","(","Sampler",")",":","The","sampler","of","dataloader",".","shuffle","(","bool",",","optional",")",":","Whether","the","dataloader","will","be","shuffle","after","a","round",".","Defaults","to","``","False","``",".","Attributes",":","_dataset","(","Dataset",")",":","The","dataset","of","this","dataloader",".","shuffle","(","bool",")",":","If","``","True","``",",","dataloader","will","shuffle","before","every","epoch",".","pr","(","int",")",":","Pointer","of","dataloader",".","step","(","int",")",":","The","increment","of",":","attr",":","`","pr","`","for","each","batch",".","_batch_size","(","int",")",":","The","max","interaction","number","for","all","batch","."]
docstr: Reset the batch_size of the dataloader, but it can't be called when dataloader is being iterated.
  
  Args:
      batch_size (int): the new batch_size of dataloader.
docstr_tok: ["Reset","the","batch_size","of","the","dataloader",",","but","it","ca","n't","be","called","when","dataloader","is","being","iterated",".","Args",":","batch_size","(","int",")",":","the","new","batch_size","of","dataloader","."]
code: def set_batch_size(self, batch_size):
      """Reset the batch_size of the dataloader, but it can't be called when dataloader is being iterated.
  
      Args:
          batch_size (int): the new batch_size of dataloader.
      """
      self._batch_size = batch_size
  
imports: import math
  import copy
  from logging import getLogger
  import torch
  from recbole.data.interaction import Interaction
  from recbole.utils import InputType, FeatureType, FeatureSource, ModelType
  from recbole.data.transform import construct_transform
label_desc: Use image node_id 4 for calling the AbstractDataLoader obj's underlying member method code with example usage: obj.set_batch_size(batch_size) without return types