code: def test_array(input_array, expected_array, mapper):
      X = np.array(input_array).reshape(-1, 1)
      expected = np.array(expected_array).reshape(-1, 1)
      result = DictMapper(mapper=mapper, default=-1).fit_transform(X)
      np.testing.assert_array_equal(result, expected)
  
file_path: scikit-lego/tests/test_preprocessing/test_dictmapper.py
imports: import numpy
  import pandas
  import pytest
  from sklego.common import flatten
  from sklego.preprocessing import DictMapper
  from tests.conftest import general_checks, nonmeta_checks, select_tests, transformer_checks
label_desc: Use image node_id 3 for calling a global function with example usage: test_array(input_array, expected_array, mapper) without return types