code: def get_dicom_files(path, recurse=True, folders=None):
      "Get dicom files in `path` recursively, only in `folders`, if specified."
      return get_files(
          path,
          extensions=[".dcm", ".dicom"],
          recurse=recurse,
          folders=folders,
      )
  
imports: from __future__ import annotations
  from ..basics import *
  from ..vision.all import *
  from ..data.transforms import *
  import pydicom, kornia, skimage
  from pydicom.dataset import Dataset
  from pydicom.tag import BaseTag
  from pydicom.multival import MultiValue
  from PIL import Image
label_desc: Use image node_id 1 for calling a global function with example usage: get_dicom_files(path, recurse, folders) and returns: get_files