code: def files_to_numpy(
      root: Path,
      resize: int = None,
      crop: int = None,
      mean: List = None,
      std: List = None,
  ) -> List[np.ndarray]:
      """Load image files into pytorch dataset and convert to numpy arrays."""
      dataset = files_to_torch(
          root, resize=resize, crop=crop, mean=mean, std=std
      )
      numpy_data = torch_to_numpy(dataset)
      return numpy_data
  
imports: import numpy
  import torch
  from torch.utils.data import Dataset
  from torchvision import datasets, transforms
  from typing import List, Union
  from pathlib import Path
  from PIL import Image
label_desc: Use image node_id 9 for calling a global function with example usage: files_to_numpy(root, resize, crop, mean, std) and returns: numpy_data