code: def test_contrast3(self):
      P = np.dot(self.X, np.linalg.pinv(self.X))
      resid = np.identity(40) - P
      noise = np.dot(resid, numpy.random.standard_normal((40, 5)))
      term = np.column_stack((noise, self.X[:, 2]))
      c = Contrast(term, self.X)
      assert_equal(c.contrast_matrix.shape, (10,))
  
file_path: statsmodels/statsmodels/stats/tests/test_contrast.py
imports: import numpy
  import numpy.random
  from numpy.testing import assert_almost_equal, assert_equal
  from statsmodels.stats.contrast import Contrast
  import statsmodels.stats.contrast
label_desc: Use image node_id 4 for calling the TestContrast obj's underlying member method code with example usage: obj.test_contrast3() without return types