class_docstr: SifVectorizer tests.
class_docstr_tok: ["SifVectorizer","tests","."]
docstr: Check that not trained SifVectorizer throws an exception
  if you try to call transform method.
docstr_tok: ["Check","that","not","trained","SifVectorizer","throws","an","exception","if","you","try","to","call","transform","method","."]
code: def test_raises_not_fitted(self, keyed_vectors):
      """Check that not trained SifVectorizer throws an exception
      if you try to call transform method."""
      sif = SifVectorizer(keyed_vectors)
      with pytest.raises(RuntimeError):
          sif.transform([["foo", "bar"]])
  
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 2 for calling the TestSif obj's underlying member method code with example usage: obj.test_raises_not_fitted(keyed_vectors) without return types