<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def color_parts(parts):
 """Adds colors to each part of the citation"""

    return parts._replace(
        title=Fore.GREEN + parts.title + Style.RESET_ALL,
        doi=Fore.CYAN + parts.doi + Style.RESET_ALL
    )