code: def grid():
      """Returns a GridSearch instance"""
      options = {
          "c1": [1, 2, 3],
          "c2": [1, 2, 3],
          "k": [5, 10, 15],
          "w": [0.9, 0.7, 0.4],
          "p": [1],
      }
      return GridSearch(
          LocalBestPSO,
          n_particles=40,
          dimensions=20,
          options=options,
          objective_func=sphere,
          iters=10,
          bounds=None,
      )
  
file_path: pyswarms/tests/utils/search/conftest.py
imports: import numpy
  import pytest
  from pyswarms.single import LocalBestPSO
  from pyswarms.utils.functions.single_obj import sphere
  from pyswarms.utils.search.grid_search import GridSearch
  from pyswarms.utils.search.random_search import RandomSearch
label_desc: Use image node_id 1 for calling a global function with example usage: grid() and returns: GridSearch