code: def create_label_ids(
      unique_labels: Set[str], pad_label: str
  ) -> Dict[str, int]:
      """
      Returns label ids dictionary. ``pad_label`` always has id ``0``. Other labels are sorted in alphabetical order.
      Args:
          unique_labels: a set of labels from which label ids dictionary is created. May or may not contain ``pad_label``
          pad_label: label used for padding. It is also a neutral label
  
      Returns:
          label ids dictionary
      """
      label_ids = {pad_label: 0}
      if pad_label in unique_labels:
          unique_labels.remove(pad_label)
      for label in sorted(unique_labels):
          label_ids[label] = len(label_ids)
      return label_ids
  
imports: import itertools
  import multiprocessing
  import os
  import pickle
  import tempfile
  from dataclasses import dataclass
  from math import ceil
  from pathlib import Path
  from queue import Empty
  from time import sleep
  from typing import Any, Dict, List, Optional, Set, Tuple, Union
  import numpy
  import torch
  from numpy import ndarray
  from omegaconf import MISSING, DictConfig, OmegaConf
  from torch.nn.utils.rnn import pad_sequence
  from tqdm import tqdm
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
  from nemo.collections.nlp.data.data_utils.data_preprocessing import get_label_stats, get_stats
  from nemo.core.classes import Dataset
  from nemo.core.neural_types import AudioSignal, ChannelType, LabelsType, LengthsType, MaskType, NeuralType
  from nemo.utils import logging
  from nemo.utils.get_rank import is_global_rank_zero
label_desc: Use image node_id 7 for calling a global function with example usage: create_label_ids(unique_labels, pad_label) and returns: label_ids