docstr: Test whether TD3 can be built with both frameworks.
docstr_tok: ["Test","whether","TD3","can","be","built","with","both","frameworks","."]
code: def test_td3_compilation(self):
      """Test whether TD3 can be built with both frameworks."""
      config = td3.TD3Config()
  
      # Test against all frameworks.
      for _ in framework_iterator(config, with_eager_tracing=True):
          algo = config.build(env="Pendulum-v1")
          num_iterations = 1
          for i in range(num_iterations):
              results = algo.train()
              check_train_results(results)
              print(results)
          check_compute_single_action(algo)
          algo.stop()
  
file_path: ray/rllib_contrib/td3/tests/test_td3.py
imports: import unittest
  import numpy
  import rllib_td3.td3.td3
  import ray
  from ray.rllib.utils.framework import try_import_tf
  from ray.rllib.utils.numpy import convert_to_numpy
  from ray.rllib.utils.test_utils import check, check_compute_single_action, check_train_results, framework_iterator
label_desc: Use image node_id 3 for calling the TestTD3 obj's underlying member method code with example usage: obj.test_td3_compilation() without return types