class_docstr: Python TaskScheduler object.
  
  This is the simplest object that supports msg_id based
  DAG dependencies. *Only* task msg_ids are checked, not
  msg_ids of jobs submitted via the MUX queue.
class_docstr_tok: ["Python","TaskScheduler","object",".","This","is","the","simplest","object","that","supports","msg_id","based","DAG","dependencies",".","*","Only","*","task","msg_ids","are","checked",",","not","msg_ids","of","jobs","submitted","via","the","MUX","queue","."]
docstr: return a list of available engine indices based on HWM
docstr_tok: ["return","a","list","of","available","engine","indices","based","on","HWM"]
code: def available_engines(self):
      """return a list of available engine indices based on HWM"""
      if not self.hwm:
          return list(range(len(self.targets)))
      available = []
      for idx in range(len(self.targets)):
          if self.loads[idx] < self.hwm:
              available.append(idx)
      return available
  
imports: import time
  from collections import deque
  from random import randint, random
  from types import FunctionType
  import zmq
  from traitlets import Dict, Enum, Instance, Integer, List, observe
  from ipyparallel import Dependency, error, util
  from ipyparallel.controller.scheduler import Scheduler
label_desc: Use image node_id 13 for calling the TaskScheduler obj's underlying member method code with example usage: obj.available_engines() and returns: available, list