code: def __init__(self, d=None):
      self.metadata = {} or d
  
imports: import os
  import re
  import collections
  from medicaltorch import transforms
  from tqdm import tqdm
  import numpy
  import nibabel
  from torch.utils.data import Dataset
  import torch
  from torch._six import string_classes, int_classes
  from PIL import Image
label_desc: Use image node_id 1 to create a new SampleMetadata object from inherited base classes: object with example: obj = SampleMetadata(d)