code: def test_keyed_vectors(keyed_vectors):
      """Keyed vectors sanity check."""
      similarity = cosine(keyed_vectors["cat"], keyed_vectors["dog"])
      assert math.isclose(similarity, 0.04)
  
file_path: textvec/tests/test_vectorizers.py
imports: import math
  import pytest
  from scipy.spatial.distance import cosine
  from scipy.sparse.linalg import norm
  from sklearn.model_selection import GridSearchCV
  from sklearn.pipeline import Pipeline
  from sklearn.dummy import DummyClassifier
  from textvec.vectorizers import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_keyed_vectors(keyed_vectors) without return types