def get_filter(self, filter_id):
        params = {'token': self.token,
                  'filter_id': filter_id}
        data = self._get('get_filter', params=params)
        obj = data.get('filter', None)
        if obj and 'error' not in obj:
            self._update_state({'Filters': [obj]})
            return [o for o in self.state['Filters']
                    if o['id'] == obj['id']][0]
        return None
Return status code or random status code if more than one are given
dataset/ETHPy150Open Doist/todoist-python/todoist/api.py/TodoistAPI.get_filter--crossover with--dataset/ETHPy150Open mozillazg/bustard/tests/httpbin/core.py/view_status_code