code: def test_scaling_action():
      """
      test scaling of scalar, 1d and 2d vectors of finite non-NaN real numbers to and from tanh co-domain (per component)
      """
      test_ranges = [
          (-1, 1),
          (-10, 10),
          (-10, 5),
          (-10, 0),
          (-10, -5),
          (0, 10),
          (5, 10),
      ]
  
      # scalars
      for range_low, range_high in test_ranges:
          check_scaled_actions_from_range(
              range_low, range_high, scalar=True
          )
  
      # 1d vectors: wrapped scalars
      for test_range in test_ranges:
          check_scaled_actions_from_range(*test_range)
  
      # 2d vectors: all combinations of ranges above
      for r1_low, r1_high in test_ranges:
          for r2_low, r2_high in test_ranges:
              check_scaled_actions_from_range(
                  np.array([r1_low, r2_low], dtype=np.float),
                  np.array([r1_high, r2_high], dtype=np.float),
              )
  
imports: import tensorflow
  import numpy
  from gym.spaces.box import Box
  from stable_baselines.common.math_util import discount_with_boundaries, scale_action, unscale_action
label_desc: Use image node_id 2 for calling a global function with example usage: test_scaling_action() without return types