code: def test_environment(self):
      self.start_tests(name="getting-started-environment")
  
      environment = Environment.create(
          environment="gym", level="CartPole", max_episode_timesteps=50
      )
      self.finished_test()
  
      environment = Environment.create(
          environment="gym", level="CartPole-v1"
      )
      self.finished_test()
  
      environment = Environment.create(
          environment="test/data/environment.json",
          max_episode_timesteps=50,
      )
      self.finished_test()
  
      environment = Environment.create(
          environment="test.data.custom_env", max_episode_timesteps=10
      )
      self.finished_test()
  
      from test.data.custom_env import CustomEnvironment
  
      environment = Environment.create(
          environment=CustomEnvironment, max_episode_timesteps=10
      )
      self.finished_test()
  
file_path: tensorforce/test/test_documentation.py
imports: import unittest
  from tensorforce import Agent, Environment, Runner
  from test.unittest_base import UnittestBase
label_desc: Use image node_id 1 for calling the TestDocumentation obj's underlying member method code with example usage: obj.test_environment() without return types