code: def test_remap_v2(keys, mapper):
      remap = remap_ids_v2(mapper, default=99)
      values, _ = remap(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 5 for calling a global function with example usage: test_remap_v2(keys, mapper) without return types