code: def test_action_mapping(self):
      origin_act = np.array([-1.0, 0.0, 1.0])
  
      env = MockEnv(0.0, 1.0)
      wrapper_env = ActionMappingWrapper(env)
      wrapper_env.step(origin_act)
      self.assertListEqual(list(env.action), [0.0, 0.5, 1.0])
  
      env = MockEnv(-2.0, 2.0)
      wrapper_env = ActionMappingWrapper(env)
      wrapper_env.step(origin_act)
      self.assertListEqual(list(env.action), [-2.0, 0.0, 2.0])
  
      env = MockEnv(-5.0, 10.0)
      wrapper_env = ActionMappingWrapper(env)
      wrapper_env.step(origin_act)
      self.assertListEqual(list(env.action), [-5.0, 2.5, 10.0])
  
file_path: PARL/parl/env/tests/continuous_wrappers_test.py
imports: import gym
  import numpy
  import unittest
  from parl.env.continuous_wrappers import ActionMappingWrapper
label_desc: Use image node_id 1 for calling the TestActionMappingWrapper obj's underlying member method code with example usage: obj.test_action_mapping() without return types