<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_colorized_contents(contents, color_config):
 """Colorize the contents based on the color_config."""

    colorizer = color.EgColorizer(color_config)
    result = colorizer.colorize_text(contents)
    return result