code: def test_dont_import_torch_error():
      """Check error being thrown, if torch not installed but configured."""
      # Do not import tf for testing purposes.
      os.environ["RLLIB_TEST_NO_TORCH_IMPORT"] = "1"
      config = (
          ppo.PPOConfig().environment("CartPole-v1").framework("torch")
      )
      with pytest.raises(
          ImportError, match="However, no installation was found"
      ):
          config.build()
  
imports: import os
  import pytest
  import ray.rllib.algorithms.ppo
  from ray.rllib.utils.test_utils import framework_iterator
label_desc: Use image node_id 2 for calling a global function with example usage: test_dont_import_torch_error() without return types