code: def segmentation_counts_micro(
      y_true_onehot: np.ndarray, y_pred_onehot: np.ndarray
  ) -> Tuple[int, int, int]:
      """Compute the micro averaged ground truth, predicted and intersection areas for segmentation metrics."""
      tp_onehot = np.logical_and(y_true_onehot, y_pred_onehot)
      return (
          np.sum(tp_onehot),
          np.sum(y_true_onehot),
          np.sum(y_pred_onehot),
      )
  
imports: from typing import Tuple
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: segmentation_counts_micro(y_true_onehot, y_pred_onehot) and returns: np,  np,  np