<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dict(self):
 """ Return a dict of all instance variables with truthy values, with key names camelized """

        return {
            inflection.camelize(k, False): v
            for k, v in self.__dict__.items()
            if v
        }