code: def test_vpg(self):
      self.start_tests(name="VPG")
      agent, environment = self.prepare(
          agent="vpg",
          batch_size=2,
          network=dict(type="auto", size=8, depth=1, rnn=2),
          baseline=dict(type="auto", size=7, depth=1, rnn=1),
          baseline_optimizer=dict(optimizer="adam", learning_rate=1e-3),
      )
  
      self.execute(agent=agent, environment=environment)
  
      with TemporaryDirectory() as directory:
          agent.save(directory=directory, format="numpy")
          agent = Agent.load(directory=directory)
          states = environment.reset()
          agent.act(states=states)
          agent.close()
          environment.close()
  
file_path: tensorforce/test/test_agents.py
imports: from tempfile import TemporaryDirectory
  import unittest
  from tensorforce import Agent
  from test.unittest_base import UnittestBase
label_desc: Use image node_id 12 for calling the TestAgents obj's underlying member method code with example usage: obj.test_vpg() without return types