<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_input_format(self, content_type, handler):
 """Sets an input format handler for this Hug API, given the specified content_type"""

        if getattr(self, '_input_format', None) is None:
            self._input_format = {}
        self._input_format[content_type] = handler