code: def holdertable(x):
      """Holder Table objective function
  
      Only takes two dimensions and has a four equal global minimums
       of `-19.2085` at :code:`f([8.05502, 9.66459])`, :code:`f([-8.05502, 9.66459])`,
       :code:`f([8.05502, -9.66459])`, and :code:`f([-8.05502, -9.66459])`.
      Its coordinates are bounded within :code:`[-10, 10]`.
  
      Best visualized with the full domain and a range of :code:`[-20, 0]`
  
      Parameters
      ----------
      x : numpy.ndarray
          set of inputs of shape :code:`(n_particles, dimensions)`
  
      Returns
      -------
      numpy.ndarray
          computed cost of size :code:`(n_particles, )`
  
      Raises
      ------
      IndexError
          When the input dimensions is greater than what the function
          allows
      ValueError
          When the input is out of bounds with respect to the function
          domain
      """
      if not x.shape[1] == 2:
          raise IndexError(
              "Holder Table function only takes two-dimensional input."
          )
      if not np.logical_and(x >= -10, x <= 10).all():
          raise ValueError(
              "Input for Holder Table function must be within [-10,10]."
          )
  
      x_ = x[:, 0]
      y_ = x[:, 1]
  
      j = -np.abs(
          np.sin(x_)
          * np.cos(y_)
          * np.exp(np.abs(1 - np.sqrt(x_**2 + y_**2) / np.pi))
      )
  
      return j
  
file_path: pyswarms/pyswarms/utils/functions/single_obj.py
imports: import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: holdertable(x) and returns: j