code: def shape_labels(lbl: np.ndarray) -> np.ndarray:
      """
      Reshape a labels array
  
      :param lbl: a label array
      :return:
      """
      if lbl.shape[0] == 1:
          return lbl.squeeze(axis=0)
      return lbl
  
file_path: adversarial-robustness-toolbox/art/attacks/poisoning/adversarial_embedding_attack.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  from typing import Tuple, Union, List, Optional, TYPE_CHECKING
  import numpy
  from art.attacks.attack import PoisoningAttackTransformer
  from art.attacks.poisoning.backdoor_attack import PoisoningAttackBackdoor
  from art.estimators.classification.keras import KerasClassifier
label_desc: Use image node_id 2 for calling a global function with example usage: shape_labels(lbl) and returns: lbl, lbl