code: def __init__(self):
      super(NegSamplingLoss, self).__init__()
  
imports: import random
  import numpy
  import torch
  import torch.nn
  from recbole.model.abstract_recommender import GeneralRecommender
  from recbole.model.init import xavier_normal_initialization
  from recbole.utils import InputType
label_desc: Use image node_id 1 to create a new NegSamplingLoss object from inherited base classes: nn with example: obj = NegSamplingLoss()