code: def onehot2int(onehot_matrix: np.ndarray) -> List[List[int]]:
      """Convert multi-label classification `labels` from a onehot matrix format to a ``List[List[int]]`` format that can be used with other cleanlab functions.
  
      Parameters
      ----------
      onehot_matrix: 2D np.ndarray of 0s and 1s
        A matrix representation of multi-label classification labels in a binarized format as a multi-hot vector for each example.
        The entries in this vector are 1 for each class that applies to this example and 0 otherwise.
  
      Returns
      -------
      labels: list of lists of integers
        e.g. [[0,1], [3], [1,2,3], [1], [2]]
        All integers from 0,1,...,K-1 must be represented."""
  
      return [list(np.where(row == 1)[0]) for row in onehot_matrix]
  
file_path: cleanlab/cleanlab/internal/multilabel_utils.py
imports: from typing import Tuple, Optional, List
  import numpy
  from cleanlab.internal.util import get_num_classes
label_desc: Use image node_id 5 for calling a global function with example usage: onehot2int(onehot_matrix) and returns: unknown