code: def tweedie_loss(p: float):
      def tweedie_ll(preds: Tensor, target: Tensor):
          return -target * pt.pow(preds, 1 - p) / (1 - p) + pt.pow(
              preds, 2 - p
          ) / (2 - p)
  
      return tweedie_ll
  
file_path: gluonts/src/gluonts/nursery/daf/tslib/metrics/metrics.py
imports: import torch
  from torch import Tensor, BoolTensor
  from torch.nn.functional import l1_loss, mse_loss
  from torch.distributions import Distribution, Normal
label_desc: Use image node_id 7 for calling a global function with example usage: tweedie_loss(p) and returns: tweedie_ll, unknown