docstr: Ensure that vectors of different lengths raise
docstr_tok: ["Ensure","that","vectors","of","different","lengths","raise"]
code: def test_ensure_same_length(self):
      """
      Ensure that vectors of different lengths raise
      """
      fig, ax = plt.subplots()
      X = np.array([1, 2, 3, 5, 8, 10, 2])
      y = np.array([1, 3, 6, 2])
  
      with pytest.raises(YellowbrickValueError):
          draw_best_fit(X, y, ax, "linear")
  
      with pytest.raises(YellowbrickValueError):
          draw_best_fit(X[:, np.newaxis], y, ax, "linear")
  
file_path: yellowbrick/tests/test_bestfit.py
imports: import pytest
  import numpy
  import matplotlib.pyplot
  from tests.base import VisualTestCase
  from yellowbrick.bestfit import *
  from yellowbrick.anscombe import ANSCOMBE
  from yellowbrick.exceptions import YellowbrickValueError
  from sklearn.linear_model import LinearRegression
  from sklearn.pipeline import Pipeline
label_desc: Use image node_id 2 for calling the TestBestFit obj's underlying member method code with example usage: obj.test_ensure_same_length() without return types