class_docstr: Base executor class
  
  Parameters
  ----------
  n_workers: int
      The number of workers the Executor should have. Depending on the backend
      it may spawn this many worker or connect to running instance that
      dispatch work to ``n_workers`` workers.
code: def __getstate__(self):
      return dict(n_workers=self.n_workers)
  
imports: from orion.core.utils import GenericFactory
label_desc: Use image node_id 2 for calling the BaseExecutor obj's underlying member method code with example usage: obj.__getstate__() and returns: dict