<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _icon_by_painter(self, painter, options):
 """Return the icon corresponding to the given painter."""

        engine = CharIconEngine(self, painter, options)
        return QIcon(engine)