class_docstr: DistanceLoss:
      mode: loss mode
code: def forward(self, x, y):
      return self.loss_func(x, y)
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn import L1Loss
  from paddle.nn import MSELoss
  from paddle.nn import SmoothL1Loss
label_desc: Use image node_id 2 for calling the DistanceLoss obj's underlying member method code with example usage: obj.forward(x, y) and returns: self