class_docstr: SifVectorizer tests.
class_docstr_tok: ["SifVectorizer","tests","."]
docstr: Normalization test.
docstr_tok: ["Normalization","test","."]
code: def test_norm(self, keyed_vectors):
      """Normalization test."""
      sif = SifVectorizer(keyed_vectors, norm="l2").fit(
          tokenized_sentences
      )
      matrix = sif.transform(tokenized_sentences)
      norm = np.linalg.norm(matrix, axis=1)
      np.testing.assert_allclose(np.mean(norm), 1.0)
  
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 3 for calling the TestSif obj's underlying member method code with example usage: obj.test_norm(keyed_vectors) without return types