code: def test_unique_id_multithreading():
      """Create a bunch of threads and assert they all get unique IDs"""
  
      list_of_ids = []
  
      def get_model_id(id_list, index):
          id_list.append(create_model(name=f"worker{index}").id)
  
      counter = 0
      while len(list_of_ids) < 1000:
          workers = []
          for i in range(50):
              w = threading.Thread(
                  target=get_model_id, args=(list_of_ids, counter)
              )
              workers.append(w)
              counter += 1
          for w in workers:
              w.start()
          for w in workers:
              w.join()
  
      assert len(list_of_ids) == len(list(set(list_of_ids)))
  
imports: import threading
  import time
  from collections import Counter
  import numpy
  import pytest
  from thinc.api import Adam, CupyOps, Dropout, Linear, Model, Relu, Shim, Softmax, chain, change_attr_values, concatenate, set_dropout_rate, use_ops, with_debug, wrap_model_recursive
  from thinc.compat import has_cupy_gpu
  from ..util import make_tempdir
label_desc: Use image node_id 24 for calling a global function with example usage: test_unique_id_multithreading() without return types