code: def __init__(
      self,
      cfg,
      images_path: list,
      images_label: list,
      img_w: int = 224,
      img_h: int = 224,
  ):
      super().__init__(cfg)
      self.images_path = images_path
      self.images_label = images_label
      self.image_w = img_w
      self.image_h = img_h
      self.transforms = transforms.Compose(
          [
              transforms.Resize(min(img_h, img_w)),
              transforms.CenterCrop((img_h, img_w)),
          ]
      )
  
imports: import os
  import json
  import random
  from PIL import Image
  import numpy
  from compression.api import DataLoader, Metric
  from torchvision.transforms import transforms
label_desc: Use image node_id 1 to create a new MyDataLoader object from inherited base classes: DataLoader with example: obj = MyDataLoader(cfg, images_path, images_label, img_w, img_h)