code: def test_tensorforce(self):
      self.start_tests(name="Tensorforce")
  
      # Explicit, singleton state/action
      self.unittest(
          states=dict(
              type="float", shape=(), min_value=1.0, max_value=2.0
          ),
          actions=dict(type="int", shape=(), num_values=4),
          agent="tensorforce",
          **UnittestBase.agent,
      )
  
      # Implicit
      agent, environment = self.prepare(**UnittestBase.agent)
  
      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 10 for calling the TestAgents obj's underlying member method code with example usage: obj.test_tensorforce() without return types