code: def __init__(self, neg_margin=1, pos_margin=0, **kwargs):
      super().__init__(mat_based_loss=True, **kwargs)
      self.neg_margin = neg_margin
      self.pos_margin = pos_margin
      self.add_to_recordable_attributes(
          list_of_names=["pos_margin", "neg_margin"], is_stat=False
      )
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/losses/lifted_structure_loss.py
imports: import torch
  from ..utils import common_functions
  from ..utils import loss_and_miner_utils
  from .generic_pair_loss import GenericPairLoss
label_desc: Use image node_id 1 to create a new GeneralizedLiftedStructureLoss object from inherited base classes: GenericPairLoss with example: obj = GeneralizedLiftedStructureLoss(neg_margin, pos_margin)