code: def test_quantile_range():
      def expect_type_error(quantile_range):
          with pytest.raises(TypeError):
              ColumnCapper(quantile_range)
  
      def expect_value_error(quantile_range):
          with pytest.raises(ValueError):
              ColumnCapper(quantile_range)
  
      # Testing quantile_range type
      expect_type_error(quantile_range=1)
      expect_type_error(quantile_range="a")
      expect_type_error(quantile_range={})
      expect_type_error(quantile_range=set())
  
      # Testing quantile_range values
      # Invalid type:
      expect_type_error(quantile_range=("a", 90))
      expect_type_error(quantile_range=(10, "a"))
  
      # Invalid limits
      expect_value_error(quantile_range=(-1, 90))
      expect_value_error(quantile_range=(10, 110))
  
      # Invalid order
      expect_value_error(quantile_range=(60, 40))
  
file_path: scikit-lego/tests/test_preprocessing/test_columncapper.py
imports: import numpy
  import pandas
  import pytest
  from sklearn.utils.validation import FLOAT_DTYPES
  from sklego.common import flatten
  from sklego.preprocessing import ColumnCapper
  from tests.conftest import general_checks, nonmeta_checks, select_tests, transformer_checks
label_desc: Use image node_id 2 for calling a global function with example usage: test_quantile_range() without return types