code: def test_get_device_mps(
      torch_cuda_is_available, torch_backends_mps_is_available
  ):
      torch_cuda_is_available.return_value = False
      torch_backends_mps_is_available.return_value = True
      device = get_device()
      assert device == "mps:0"
  
imports: from unittest.mock import patch
  from haystack.utils import get_device
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_device_mps(torch_cuda_is_available, torch_backends_mps_is_available) without return types