code: def test_dont_import_tf_error():
      """Check error being thrown, if tf not installed but configured."""
      # Do not import tf for testing purposes.
      os.environ["RLLIB_TEST_NO_TF_IMPORT"] = "1"
  
      config = ppo.PPOConfig().environment("CartPole-v1")
      for _ in framework_iterator(config, frameworks=("tf", "tf2")):
          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 1 for calling a global function with example usage: test_dont_import_tf_error() without return types