class_docstr: :class:`NegSampleDataLoader` is an abstract class which can sample negative examples by ratio.
  It has two neg-sampling method, the one is 1-by-1 neg-sampling (pair wise),
  and the other is 1-by-multi neg-sampling (point wise).
  
  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``.
class_docstr_tok: [":","class",":","`","NegSampleDataLoader","`","is","an","abstract","class","which","can","sample","negative","examples","by","ratio",".","It","has","two","neg-sampling","method",",","the","one","is","1-by-1","neg-sampling","(","pair","wise",")",",","and","the","other","is","1-by-multi","neg-sampling","(","point","wise",")",".","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","``","."]
code: def _neg_sample_by_pair_wise_sampling(self, inter_feat, neg_item_ids):
      inter_feat = inter_feat.repeat(self.times)
      neg_item_feat = Interaction({self.iid_field: neg_item_ids})
      neg_item_feat = self._dataset.join(neg_item_feat)
      neg_item_feat.add_prefix(self.neg_prefix)
      inter_feat.update(neg_item_feat)
      return inter_feat
  
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 NegSampleDataLoader obj's underlying member method code with example usage: obj._neg_sample_by_pair_wise_sampling(inter_feat, neg_item_ids) and returns: inter_feat