code: def test_wrap_non_child_references():
      relu = Relu(5)
      relu2 = Relu(5)
      chained = chain(relu, relu)
      chained2 = chain(relu2, chained)
      chained2.set_ref("relu", relu)
      # Fails in case non-child references cannot be set.
      wrap_model_recursive(chained2, with_debug)
  
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 31 for calling a global function with example usage: test_wrap_non_child_references() without return types