code: def process_label_helper2d(
      cls,
      dataset_labels,
      batch_labels,
      mapped_batch_labels,
      input_is_string=False,
  ):
      for h in [0, 1]:
          process_label_helper(
              cls,
              dataset_labels,
              batch_labels,
              mapped_batch_labels[h],
              batch_labels[:, h],
              h,
              input_is_string=input_is_string,
          )
  
file_path: pytorch-metric-learning/tests/utils/test_common_functions.py
imports: import logging
  import unittest
  import numpy
  import torch
  from sklearn.preprocessing import StandardScaler
  from pytorch_metric_learning.losses import TripletMarginLoss
  from pytorch_metric_learning.utils import common_functions
  from ..None import WITH_COLLECT_STATS
label_desc: Use image node_id 2 for calling a global function with example usage: process_label_helper2d(cls, dataset_labels, batch_labels, mapped_batch_labels, input_is_string) without return types