def METHOD_NAME(self, mock_Popen, mock_is_built_with_cuda):
    mock_Popen.return_value.__enter__.return_value = FakePopen(b"0", b"")
    mock_is_built_with_cuda.return_value = True
    gpus = local.get_gpus()
    self.assertIsNone(gpus)