code: def test_premap(keys, mapper):
      premap = premap_ids(mapper, default=99)
      values, _ = premap(keys, False)
      numpy.testing.assert_equal(
          values.squeeze(), numpy.asarray(range(len(keys)))
      )
  
file_path: thinc/thinc/tests/layers/test_mappers.py
imports: import numpy
  import pytest
  from thinc.layers import premap_ids, remap_ids, remap_ids_v2
label_desc: Use image node_id 3 for calling a global function with example usage: test_premap(keys, mapper) without return types