docs: def _parse_dependencies(dependencies, task_names):
          """Parses dependencies and adds names of task_names.
  
          :param dependencies: Input of dependency parameter
          :type dependencies: list(tuple or Dependency)
          :param task_names: Human-readable names of tasks
          :type task_names: dict(EOTask: str) or None
          :return: List of dependencies
          :rtype: list(Dependency)
          """
          parsed_dependencies = [dep if isinstance(dep, Dependency) else Dependency(*dep) for dep in dependencies]
          for dep in parsed_dependencies:
              if task_names and dep.task in task_names:
                  dep.set_name(task_names[dep.task])
          return parsed_dependencies