code: def _count_pred_classes_by_segment_in_image(
      predictions: List[np.ndarray],
  ) -> List[int]:
      """Return a list containing the number of unique classes per image for semantic segmentation."""
      return [
          np.unique(preds.argmax(0)).shape[0] for preds in predictions
      ]
  
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 13 for calling a global function with example usage: _count_pred_classes_by_segment_in_image(predictions) and returns: unknown