code: def test_issue1539():
      """Ensure vectors.resize() doesn't try to modify dictionary during iteration."""
      v = Vectors(shape=(10, 10), keys=[5, 3, 98, 100])
      v.resize((100, 100))
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_almost_equal, assert_equal
  from thinc.api import NumpyOps, get_current_ops
  from spacy.lang.en import English
  from spacy.strings import hash_string
  from spacy.tokenizer import Tokenizer
  from spacy.tokens import Doc
  from spacy.training.initialize import convert_vectors
  from spacy.vectors import Vectors
  from spacy.vocab import Vocab
  from ..util import add_vecs_to_vocab, get_cosine, make_tempdir
label_desc: Use image node_id 10 for calling a global function with example usage: test_issue1539() without return types