docstr: Convert 2D array of labels to 1D class based representation
  
  Args:
          labels: 2D numpy array
docstr_tok: ["Convert","2D","array","of","labels","to","1D","class","based","representation","Args",":","labels",":","2D","numpy","array"]
code: def labels_from_one_hot(labels):
      """Convert 2D array of labels to 1D class based representation
  
      Args:
              labels: 2D numpy array
      """
      return np.argmax(labels, axis=1)
  
file_path: auptimizer/Examples/cai_eas/eas/data_providers/base_provider.py
imports: import numpy
label_desc: Use image node_id 4 for calling the DataProvider obj's underlying member method code with example usage: obj.labels_from_one_hot(labels) and returns: np