class_docstr: Supervised vectorizers tests.
class_docstr_tok: ["Supervised","vectorizers","tests","."]
docstr: Check that output matrix shape is equal to input shape.
docstr_tok: ["Check","that","output","matrix","shape","is","equal","to","input","shape","."]
code: def test_output_shape(self, count_matrix_dataset, vectorizer):
      """Check that output matrix shape is equal to input shape."""
      _, x, y = count_matrix_dataset
      v = vectorizer()
      v.fit(x, y)
      matrix = v.transform(x)
      assert x.shape == matrix.shape
  
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 the TestVectorizers obj's underlying member method code with example usage: obj.test_output_shape(count_matrix_dataset, vectorizer) without return types