(tasks)
return {k: tuple(v) for k, v in result.items()}
Returns a dict mapping from task name to a tuple of domain names.
Returns a dict mapping from task name to a tuple of domain names.
Returns a dict mapping from task name to a tuple of domain names .
def _get_tasks_by_domain(tasks):
  """Returns a dict mapping from task name to a tuple of domain names."""
  result = collections.defaultdict(list)

  for domain_name, task_name in tasks:
    result[domain_name].append(task_name)

  return {k: tuple(v) for k, v in result.items()}
def _get_tasks_by_domain ( tasks ) : result = collections . defaultdict ( list ) for domain_name , task_name in tasks : result [ domain_name ] . append ( task_name ) return { k : tuple ( v ) for k , v in result . items ( ) }