code: def test_strict_compute(ray_start_regular_shared):
      with pytest.raises(ValueError):
          ray.data.range(10).map(lambda x: x, compute="actors").show()
      with pytest.raises(ValueError):
          ray.data.range(10).map(
              lambda x: x, compute=ray.data.ActorPoolStrategy(1, 1)
          ).show()
      with pytest.raises(ValueError):
          ray.data.range(10).map(lambda x: x, compute="tasks").show()
  
file_path: ray/python/ray/data/tests/test_strict_mode.py
imports: from collections import UserDict
  import numpy
  import pytest
  import ray
  from ray.data.tests.conftest import *
  from ray.tests.conftest import *
label_desc: Use image node_id 9 for calling a global function with example usage: test_strict_compute(ray_start_regular_shared) without return types