code: def get_label_conf(
      y_vec: np.ndarray,
  ) -> Tuple[np.ndarray, np.ndarray]:
      """
      Returns the confidence and the label of the most probable class given a vector of class confidences
  
      :param y_vec: Vector of class confidences, no. of instances as first dimension.
      :return: Confidences and labels.
      """
      assert len(y_vec.shape) == 2
  
      confs, labels = np.amax(y_vec, axis=1), np.argmax(y_vec, axis=1)
      return confs, labels
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import math
  import os
  import shutil
  import sys
  import tarfile
  import warnings
  import zipfile
  from functools import wraps
  from inspect import signature
  from typing import TYPE_CHECKING, Callable, List, Dict, Optional, Tuple, Union
  import numpy
  import six
  from scipy.special import gammainc
  from tqdm.auto import tqdm
  from art import config
label_desc: Use image node_id 17 for calling a global function with example usage: get_label_conf(y_vec) and returns: confs,  labels