class_docstr: Test suite for generate_swarm() method
class_docstr_tok: ["Test","suite","for","generate_swarm","(",")","method"]
docstr: Test if method raises ValueError when bounds is of wrong shape
docstr_tok: ["Test","if","method","raises","ValueError","when","bounds","is","of","wrong","shape"]
code: def test_bounds_wrong_size(self, bounds):
      """Test if method raises ValueError when bounds is of wrong shape"""
      with pytest.raises(ValueError):
          P.generate_swarm(n_particles=2, dimensions=3, bounds=bounds)
  
file_path: pyswarms/tests/backend/test_generators.py
imports: import numpy
  import pytest
  import pyswarms.backend
label_desc: Use image node_id 4 for calling the TestGenerateSwarm obj's underlying member method code with example usage: obj.test_bounds_wrong_size(bounds) without return types