code: def _test_data():
      num_samples_per_class = {"a": 5, "b": 10, "c": 15, "d": 20}
      num_classes = len(num_samples_per_class)
      num_total_samples = int(
          np.sum(list(num_samples_per_class.values()))
      )
      min_num_samples_per_class = np.min(
          list(num_samples_per_class.values())
      )
  
      labels = []
      for class_label, num_samples in num_samples_per_class.items():
          labels += [class_label] * num_samples
  
      return (
          labels,
          num_samples_per_class,
          min_num_samples_per_class,
          num_classes,
          num_total_samples,
      )
  
file_path: ml-cvnets/tests/data/datasets/utils/test_common.py
imports: import numpy
  import pytest
  from data.datasets.utils import common
label_desc: Use image node_id 1 for calling a global function with example usage: _test_data() and returns: labels,  num_samples_per_class,  min_num_samples_per_class,  num_classes,  num_total_samples