code: def get_data(url, presize, resize):
      path = untar_data(url)
      # print(Normalize.from_stats(*imagenet_stats))
      return DataBlock(
          blocks=(ImageBlock, CategoryBlock),
          get_items=get_image_files,
          splitter=GrandparentSplitter(valid_name="val"),
          get_y=parent_label,
          item_tfms=Resize(presize),
          batch_tfms=aug_transforms(min_scale=0.5, size=resize),
      ).dataloaders(path, bs=128)
  
imports: from fastai.vision.all import *
label_desc: Use image node_id 1 for calling a global function with example usage: get_data(url, presize, resize) and returns: DataBlock