def task_label(task):
 func = task[0]
 if hasattr(func, 'funcs'):
  if (len(func.funcs) > 1):
   return '{0}(...)'.format(funcname(func.funcs[0]))
  else:
   head = funcname(func.funcs[0])
 else:
  head = funcname(task[0])
 if any((has_sub_tasks(i) for i in task[1:])):
  return '{0}(...)'.format(head)
 else:
  return head

def task_label ( task ) : func = task [ 0 ] if hasattr ( func , 'funcs' ) : if ( len ( func . funcs ) > 1 ) : return '{0}(...)' . format ( funcname ( func . funcs [ 0 ] ) ) else : head = funcname ( func . funcs [ 0 ] ) else : head = funcname ( task [ 0 ] ) if any ( ( has_sub_tasks ( i ) for i in task [ 1 : ] ) ) : return '{0}(...)' . format ( head ) else : return head
label for a task on a dot graph .