<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_head(self, head):
 """ Add head Node """

        if not isinstance(head, DependencyNode):
            raise TypeError('"head" must be a DependencyNode')
        self._heads.append(head)