class_docstr: Runs the function with time limit.
  
  Args:
      f: Function to call.
      timeout_seconds: Maximum time limit.
  Returns:
      A tuple containing (response, duration, timed_out as boolean).
docstr: Submits and executes trials by trial run function asynchronously.
  
  Args:
      trial_run_fn (FunctionType): Trial run function that takes tasks as arg.
      trials (Iterable): Trial objects that are to be run.
      timeout (int, optional): Timeout in seconds for trial run. Defaults to None.
  
  Raises:
      NotImplementedError: Raised when executor did not implement this.
docstr_tok: ["Submits","and","executes","trials","by","trial","run","function","asynchronously",".","Args",":","trial_run_fn","(","FunctionType",")",":","Trial","run","function","that","takes","tasks","as","arg",".","trials","(","Iterable",")",":","Trial","objects","that","are","to","be","run",".","timeout","(","int",",","optional",")",":","Timeout","in","seconds","for","trial","run",".","Defaults","to","None",".","Raises",":","NotImplementedError",":","Raised","when","executor","did","not","implement","this","."]
code: def submit(
      self,
      trial_run_fn: FunctionType,
      trials: Iterable,
      timeout: int = None,
  ):
      """Submits and executes trials by trial run function asynchronously.
  
      Args:
          trial_run_fn (FunctionType): Trial run function that takes tasks as arg.
          trials (Iterable): Trial objects that are to be run.
          timeout (int, optional): Timeout in seconds for trial run. Defaults to None.
  
      Raises:
          NotImplementedError: Raised when executor did not implement this.
      """
      raise NotImplementedError()
  
file_path: interpret/python/powerlift/src/powerlift/executors/base.py
imports: from numbers import Number
  import time
  from types import FunctionType
  from typing import Any, Iterable, Tuple
  from stopit import ThreadingTimeout
label_desc: Use image node_id 1 for calling the Executor obj's underlying member method code with example usage: obj.submit(trial_run_fn, trials, timeout) without return types