<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def invoked(self, ctx):
 """Method called when the command is invoked."""

        if not ctx.ansi.is_enabled:
            print("You need color support to use this demo")
        else:
            print(ctx.ansi.cmd('erase_display'))
            self._demo_fg_color(ctx)
            self._demo_bg_color(ctx)
            self._demo_bg_indexed(ctx)
            self._demo_rgb(ctx)
            self._demo_style(ctx)