code: def multiclass_dice_coeff(
      x: torch.Tensor,
      target: torch.Tensor,
      ignore_index: int = -100,
      epsilon=1e-6,
  ):
      """Average of Dice coefficient for all classes"""
      dice = 0.0
      for channel in range(x.shape[1]):
          dice += dice_coeff(
              x[:, channel, ...],
              target[:, channel, ...],
              ignore_index,
              epsilon,
          )
  
      return dice / x.shape[1]
  
imports: import torch
  import torch.nn
label_desc: Use image node_id 3 for calling a global function with example usage: multiclass_dice_coeff(x, target, ignore_index, epsilon) and returns: unknown