<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def search_officers(self, term, disqualified=False, **kwargs):
 """Search for officers by name. Args: term (str):
 Officer name to search on. disqualified (Optional[bool]):
 True to search for disqualified officers kwargs (dict):
 additional keywords passed into requests.session.get params keyword. """

        search_type = ('officers' if not disqualified else
                       'disqualified-officers')
        params = kwargs
        params['q'] = term
        baseuri = self._BASE_URI + 'search/{}'.format(search_type)
        res = self.session.get(baseuri, params=params)
        self.handle_http_error(res)
        return res