code: def test_filter():
      filter = LinearBoxToBoxMap(10, 20)
  
      # passing an output space that is wrong
      with pytest.raises(ValueError):
          filter.validate_output_action_space(DiscreteActionSpace(10))
  
      # 1 dimensional box
      output_space = BoxActionSpace(1, 5, 35)
      input_space = filter.get_unfiltered_action_space(output_space)
  
      action = np.array([2])
  
      action = np.array([12])
      result = filter.filter(action)
      assert result == np.array([11])
      assert output_space.contains(result)
  
imports: import os
  import sys
  import pytest
  from rl_coach.filters.action.linear_box_to_box_map import LinearBoxToBoxMap
  from rl_coach.spaces import BoxActionSpace, DiscreteActionSpace
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_filter() without return types