code: def _labelsmoothing(self, target, class_num):
      if target.shape[-1] != class_num:
          one_hot_target = F.one_hot(target, class_num)
      else:
          one_hot_target = target
      soft_target = F.label_smooth(one_hot_target, epsilon=self.epsilon)
      soft_target = paddle.reshape(soft_target, shape=[-1, class_num])
      return soft_target
  
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 CELoss obj's underlying member method code with example usage: obj._labelsmoothing(target, class_num) and returns: soft_target