code: def test_correlated():
      X, y, w_true = make_correlated_data(snr=np.inf)
      np.testing.assert_allclose(y, X @ w_true)
  
      snr = 5
      w_true = np.ones(50)
      X, y, _ = make_correlated_data(n_features=w_true.shape[0], snr=5)
      np.testing.assert_allclose(
          snr, norm(X @ w_true), norm(y - X @ w_true)
      )
  
      np.testing.assert_raises(
          ValueError, make_correlated_data, corr=1.01
      )
      np.testing.assert_raises(
          ValueError, make_correlated_data, density=1.01
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_correlated() without return types