def METHOD_NAME(self, beforeTaskName, *args):
    """@brief Insert a task or tasks before a named task.
    @param beforeTaskName The name of an existing task. The new tasks will be inserted
      prior to this task.
    After the task name parameter, any number of task description 2-tuples may be
    passed.
    @exception KeyError Raised if the named task does not exist in the sequence.
    """
    self._validate_tasks(args)
    if not self.has_task(beforeTaskName):
        raise KeyError(beforeTaskName)
    seq = list(self._calls.items())
    for i, v in enumerate(seq):
        if v[0] == beforeTaskName:
            for c in args:
                # List insert() inserts before the given index.
                seq.insert(i, c)
                i += 1
            break
    self._calls = OrderedDict(seq)
    return self