code: def test_cloud_compute_with_non_unique_mount_root_dirs():
      mount_1 = Mount(source="s3://foo/", mount_path="/foo")
      mount_2 = Mount(source="s3://foo/bar/", mount_path="/foo")
  
      with pytest.raises(
          ValueError,
          match="Every Mount attached to a work must have a unique",
      ):
          CloudCompute("gpu", mounts=[mount_1, mount_2])
  
file_path: pytorch-lightning/tests/tests_app/utilities/packaging/test_cloud_compute.py
imports: import pytest
  from lightning.app import CloudCompute
  from lightning.app.storage import Mount
label_desc: Use image node_id 4 for calling a global function with example usage: test_cloud_compute_with_non_unique_mount_root_dirs() without return types