code: def create_random_data(
      image_files: List[str],
      label_files: List[str],
      size: Tuple[int, int],
      num_classes: int,
  ) -> Tuple[List[Image.Image], List[Image.Image]]:
      imgs = []
      for img_file in image_files:
          img = _rand_image(size)
          img.save(img_file)
          imgs.append(img)
  
      labels = []
      for label_file in label_files:
          label = _rand_labels(size, num_classes)
          label.save(label_file)
          labels.append(label)
  
      return imgs, labels
  
imports: import os
  from pathlib import Path
  from typing import Callable, Dict, List, Tuple
  import numpy
  import pytest
  import torch
  from flash import Trainer
  from flash.core.data.io.input import DataKeys
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.data.transforms import ApplyToKeys
  from flash.core.utilities.imports import _FIFTYONE_AVAILABLE, _MATPLOTLIB_AVAILABLE, _PIL_AVAILABLE, _SEGMENTATION_MODELS_AVAILABLE, _TOPIC_IMAGE_AVAILABLE
  from flash.image import SemanticSegmentation, SemanticSegmentationData
label_desc: Use image node_id 4 for calling a global function with example usage: create_random_data(image_files, label_files, size, num_classes) and returns: imgs,  labels