The code returns the following error:
Cannot access 'COLORS' before initialization
Revise the code to address the error.