code: def getConfig(dataset: torch.utils.data.Dataset):
      label2id = {}
      id2label = {}
  
      for i, class_name in enumerate(dataset.classes):
          label2id[class_name] = str(i)
          id2label[str(i)] = class_name
  
      return label2id, id2label
  
file_path: HugsVision/hugsvision/dataio/VisionDataset.py
imports: import math
  import random
  from collections import Counter
  from operator import itemgetter
  import torch
  from torchvision import transforms
  from torchvision.datasets import ImageFolder
  from PIL import Image, ImageEnhance
  from tabulate import tabulate
label_desc: Use image node_id 6 for calling the VisionDataset obj's underlying member method code with example usage: obj.getConfig(dataset) and returns: label2id,  id2label