code: def test_make_blobs_error(setup):
      n_samples = [20, 20, 20]
      centers = np.array([[0.0, 0.0], [1.0, 1.0], [0.0, 1.0]])
      cluster_stds = np.array([0.05, 0.2, 0.4])
      wrong_centers_msg = (
          "Length of `n_samples` not consistent "
          f"with number of centers. Got n_samples = {n_samples} "
          f"and centers = {centers[:-1]}"
      )
      assert_raise_message(
          ValueError,
          wrong_centers_msg,
          make_blobs,
          n_samples,
          centers=centers[:-1],
      )
      wrong_std_msg = (
          "Length of `clusters_std` not consistent with "
          f"number of centers. Got centers = {mt.tensor(centers)} "
          f"and cluster_std = {cluster_stds[:-1]}"
      )
      assert_raise_message(
          ValueError,
          wrong_std_msg,
          make_blobs,
          n_samples,
          centers=centers,
          cluster_std=cluster_stds[:-1],
      )
      wrong_type_msg = (
          f"Parameter `centers` must be array-like. Got {3!r} instead"
      )
      assert_raise_message(
          ValueError, wrong_type_msg, make_blobs, n_samples, centers=3
      )
  
file_path: mars/mars/learn/datasets/tests/test_samples_generator.py
imports: from functools import partial
  from collections import defaultdict
  import numpy
  from sklearn.utils._testing import assert_array_almost_equal, assert_raises, assert_almost_equal, assert_raise_message
  from ....None import tensor
  from ....tensor.linalg import svd
  from ..samples_generator import make_low_rank_matrix, make_classification, make_regression, make_blobs
label_desc: Use image node_id 9 for calling a global function with example usage: test_make_blobs_error(setup) without return types