class_docstr: Search of optimal performance on selected objective function
  over combinations of randomly selected hyperparameter values
  within specified bounds for specified number of selection iterations.
docstr: Assertion method to check :code:`n_selection_iters` input
  
  Raises
  ------
  TypeError
      When :code:`n_selection_iters` is not of type int
code: def assertions(self):
      """Assertion method to check :code:`n_selection_iters` input
  
      Raises
      ------
      TypeError
          When :code:`n_selection_iters` is not of type int
      """
      super(RandomSearch, self).assertions()
  
      # Check type of n_selection_iters parameter
      if not isinstance(self.n_selection_iters, int):
          raise TypeError(
              "Parameter `n_selection_iters` must be of " "type int"
          )
  
file_path: pyswarms/pyswarms/utils/search/random_search.py
imports: from __future__ import absolute_import, print_function, with_statement
  import numpy
  from past.builtins import xrange
  from pyswarms.utils.search.base_search import SearchBase
label_desc: Use image node_id 1 for calling the RandomSearch obj's underlying member method code with example usage: obj.assertions() without return types