code: def speed_test_hashembed():
      embed = HashEmbed(N_dim, N_symbols)
      embed.initialize()
      keys = np.random.randint(0, N_symbols, N_tokens)
      with time_context() as elapsed:
          for i in range(100):
              embed(keys, False)
      print(elapsed.elapsed)
  
file_path: thinc/examples/benchmarks/mappers.py
imports: from thinc.api import remap_ids_v2
  from thinc.api import premap_ids
  from thinc.api import chain, Embed, HashEmbed
  import time
  import random
  import numpy
  import cupy
label_desc: Use image node_id 6 for calling a global function with example usage: speed_test_hashembed() without return types