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.
docstr: Submit work to the executor for asynchronous execution
  
  Parameters
  ----------
  function: a callable object
      A function to be executed by the executor. The function must be serializable.
  *args, **kwargs:
      Arguments for the function. The arguments must be serializable.
docstr_tok: ["Submit","work","to","the","executor","for","asynchronous","execution","Parameters","--","--","--","--","--","function",":","a","callable","object","A","function","to","be","executed","by","the","executor",".","The","function","must","be","serializable",".","*","args",",","*","*","kwargs",":","Arguments","for","the","function",".","The","arguments","must","be","serializable","."]
code: def submit(self, function, *args, **kwargs):
      """Submit work to the executor for asynchronous execution
  
      Parameters
      ----------
      function: a callable object
          A function to be executed by the executor. The function must be serializable.
      *args, **kwargs:
          Arguments for the function. The arguments must be serializable.
  
      """
  
imports: from orion.core.utils import GenericFactory
label_desc: Use image node_id 7 for calling the BaseExecutor obj's underlying member method code with example usage: obj.submit(function) without return types