code: def smooth_l1(
      input, label, inside_weight=None, outside_weight=None, sigma=None
  ):
      input_new = paddle.multiply(input, inside_weight)
      label_new = paddle.multiply(label, inside_weight)
      delta = 1 / (sigma * sigma)
      out = F.smooth_l1_loss(
          input_new, label_new, reduction="none", delta=delta
      )
      out = paddle.multiply(out, outside_weight)
      out = out / delta
      out = paddle.reshape(out, shape=[out.shape[0], -1])
      out = paddle.sum(out, axis=1)
      return out
  
imports: import paddle
  import paddle.nn.functional
  import paddle.nn
  from paddle import ParamAttr
  from paddle.regularizer import L2Decay
  from paddle import in_dynamic_mode
  from paddle.common_ops_import import Variable, LayerHelper, check_variable_and_dtype, check_type, check_dtype
label_desc: Use image node_id 15 for calling a global function with example usage: smooth_l1(input, label, inside_weight, outside_weight, sigma) and returns: out