code: def _verify_mount_root_dirs_are_unique(
      mounts: Union[None, Mount, List[Mount], Tuple[Mount]]
  ) -> None:
      if isinstance(mounts, (list, tuple, set)):
          mount_paths = [mount.mount_path for mount in mounts]
          if len(set(mount_paths)) != len(mount_paths):
              raise ValueError(
                  "Every Mount attached to a work must have a unique 'mount_path' argument."
              )
  
file_path: pytorch-lightning/src/lightning/app/utilities/packaging/cloud_compute.py
imports: from dataclasses import asdict, dataclass
  from typing import Dict, List, Optional, Tuple, Union
  from uuid import uuid4
  from lightning.app.core.constants import ENABLE_MULTIPLE_WORKS_IN_NON_DEFAULT_CONTAINER, enable_interruptible_works
  from lightning.app.storage.mount import Mount
label_desc: Use image node_id 1 for calling a global function with example usage: _verify_mount_root_dirs_are_unique(mounts) without return types