code: def test_models_initialize_consistently(seed, model_func, kwargs):
      fix_random_seed(seed)
      model1 = model_func(**kwargs)
      model1.initialize()
      fix_random_seed(seed)
      model2 = model_func(**kwargs)
      model2.initialize()
      params1 = get_all_params(model1)
      params2 = get_all_params(model2)
      assert_array_equal(
          model1.ops.to_numpy(params1), model2.ops.to_numpy(params2)
      )
  
imports: from typing import List
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from thinc.api import Adam, Logistic, Ragged, Relu, chain, fix_random_seed, reduce_mean, set_dropout_rate
  from spacy.lang.en import English
  from spacy.lang.en.examples import sentences
  from spacy.ml.extract_spans import _get_span_indices, extract_spans
  from spacy.ml.models import MaxoutWindowEncoder, MultiHashEmbed, build_bow_text_classifier, build_simple_cnn_text_classifier, build_spancat_model, build_Tok2Vec_model
  from spacy.ml.staticvectors import StaticVectors
  from spacy.util import registry
label_desc: Use image node_id 9 for calling a global function with example usage: test_models_initialize_consistently(seed, model_func, kwargs) without return types