code: def calculate_intersection_area(
      box1: np.ndarray, box2: np.ndarray
  ) -> float:
      """
      Args:
          box1 (np.ndarray): np.array([x1, y1, x2, y2])
          box2 (np.ndarray): np.array([x1, y1, x2, y2])
      """
      left_top = np.maximum(box1[:2], box2[:2])
      right_bottom = np.minimum(box1[2:], box2[2:])
      width_height = (right_bottom - left_top).clip(min=0)
      return width_height[0] * width_height[1]
  
imports: from collections.abc import Sequence
  from typing import List, Union
  import numpy
  import torch
  from sahi.annotation import BoundingBox, Category, Mask
  from sahi.prediction import ObjectPrediction
label_desc: Use image node_id 5 for calling a global function with example usage: calculate_intersection_area(box1, box2) and returns: unknown