code: def _check_nonzero(boxes: torch.Tensor, eps: float = 1e-4) -> None:
      """
      Checks that the sides of the box have a non zero area
      """
      faces = torch.tensor(
          _box_triangles, dtype=torch.int64, device=boxes.device
      )
      verts = boxes.index_select(index=faces.view(-1), dim=1)
      B = boxes.shape[0]
      T, V = faces.shape
      # (B, T, 3, 3) -> (B, T, 3)
      v0, v1, v2 = verts.reshape(B, T, V, 3).unbind(2)
  
      normals = torch.cross(v1 - v0, v2 - v0, dim=-1)  # (B, T, 3)
      face_areas = normals.norm(dim=-1) / 2
  
      if (face_areas < eps).any().item():
          msg = "Planes have zero areas"
          raise ValueError(msg)
  
      return
  
file_path: pytorch3d/pytorch3d/ops/iou_box3d.py
imports: from typing import Tuple
  import torch
  import torch.nn.functional
  from pytorch3d import _C
  from torch.autograd import Function
label_desc: Use image node_id 2 for calling a global function with example usage: _check_nonzero(boxes, eps) without return types