code: def test_cloud_compute_shared_memory():
      cloud_compute = CloudCompute("gpu", shm_size=1100)
      assert cloud_compute.shm_size == 1100
  
      cloud_compute = CloudCompute("gpu")
      assert cloud_compute.shm_size == 1024
  
      cloud_compute = CloudCompute("cpu")
      assert cloud_compute.shm_size == 0
  
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 2 for calling a global function with example usage: test_cloud_compute_shared_memory() without return types