<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_categories(categories, colors):
 """Print a tick and the category's name for each category above the graph."""

    for i in range(len(categories)):
        if colors:
            sys.stdout.write(f'\033[{colors[i]}m') # Start to write colorized.

        sys.stdout.write(TICK + ' ' + categories[i] + '  ')
        if colors:
            sys.stdout.write('\033[0m') # Back to original.

    print('\n\n')