class_docstr: :class:`KGDataLoader` is a dataloader which would return the triplets with negative examples
  in a knowledge graph.
  
  Args:
      config (Config): The config of dataloader.
      dataset (Dataset): The dataset of dataloader.
      sampler (KGSampler): The knowledge graph sampler of dataloader.
      shuffle (bool, optional): Whether the dataloader will be shuffle after a round. Defaults to ``False``.
  
  Attributes:
      shuffle (bool): Whether the dataloader will be shuffle after a round.
          However, in :class:`KGDataLoader`, it's guaranteed to be ``True``.
class_docstr_tok: [":","class",":","`","KGDataLoader","`","is","a","dataloader","which","would","return","the","triplets","with","negative","examples","in","a","knowledge","graph",".","Args",":","config","(","Config",")",":","The","config","of","dataloader",".","dataset","(","Dataset",")",":","The","dataset","of","dataloader",".","sampler","(","KGSampler",")",":","The","knowledge","graph","sampler","of","dataloader",".","shuffle","(","bool",",","optional",")",":","Whether","the","dataloader","will","be","shuffle","after","a","round",".","Defaults","to","``","False","``",".","Attributes",":","shuffle","(","bool",")",":","Whether","the","dataloader","will","be","shuffle","after","a","round",".","However",",","in",":","class",":","`","KGDataLoader","`",",","it","'s","guaranteed","to","be","``","True","``","."]
code: def _init_batch_size_and_step(self):
      batch_size = self.config["train_batch_size"]
      self.step = batch_size
      self.set_batch_size(batch_size)
  
file_path: RecBole/recbole/data/dataloader/knowledge_dataloader.py
imports: from logging import getLogger
  from recbole.data.dataloader.abstract_dataloader import AbstractDataLoader
  from recbole.data.dataloader.general_dataloader import TrainDataLoader
  from recbole.data.interaction import Interaction
  from recbole.utils import InputType, KGDataLoaderState
  import numpy
label_desc: Use image node_id 2 for calling the KGDataLoader obj's underlying member method code with example usage: obj._init_batch_size_and_step() without return types