code: def test_dimension_mismatch():
      t = AnnoyIndex(100, "angular")
      for i in range(1000):
          t.add_item(i, [random.gauss(0, 1) for z in range(100)])
      t.build(10)
      t.save("test.annoy")
  
      u = AnnoyIndex(200, "angular")
      with pytest.raises(IOError):
          u.load("test.annoy")
      u = AnnoyIndex(50, "angular")
      with pytest.raises(IOError):
          u.load("test.annoy")
  
imports: import os
  import random
  import pytest
  from annoy import AnnoyIndex
label_desc: Use image node_id 20 for calling a global function with example usage: test_dimension_mismatch() without return types