<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_rgb(cls, r: int, g: int, b: int) -> 'ColorCode': """ Return a ColorCode from a RGB tuple. """

        c = cls()
        c._init_rgb(r, g, b)
        return c