code: def neg_iou_loss(
      predict: torch.Tensor,
      target: torch.Tensor,
      mask: Optional[torch.Tensor] = None,
  ) -> torch.Tensor:
      """
      This is a great loss because it emphasizes on the active
      regions of the predict and targets
      """
      return 1.0 - iou(predict, target, mask=mask)
  
file_path: pytorch3d/pytorch3d/implicitron/tools/metric_utils.py
imports: import math
  from typing import Optional, Tuple
  import torch
  from torch.nn import functional
label_desc: Use image node_id 10 for calling a global function with example usage: neg_iou_loss(predict, target, mask) and returns: unknown