code: def _get_segment_area(labels: List[np.ndarray]) -> List[List[int]]:
      """Return a list containing the area of segments in batch."""
      return [
          np.unique(label, return_counts=True)[1].tolist()
          for label in labels
      ]
  
file_path: deepchecks/deepchecks/vision/utils/label_prediction_properties.py
imports: from typing import List, Sequence, Union
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: _get_segment_area(labels) and returns: unknown