def _set_filter(self, filter_type, address, filters):
        assert ('in', 'out') in filter_type,\
            'filter type must be \'in\' or \'out\''

        assert all(isinstance(f, Filter) for f in filters),\
            'all the items in filters must be an instance of Filter sub-class'

        if filters is None:
            filters = []

        func_name = 'neighbor.' + filter_type + '_filter.set'
        param = {}
        param[neighbors.IP_ADDRESS] = address
        if filter_type == 'in':
            param[neighbors.IN_FILTER] = filters
        else:
            param[neighbors.OUT_FILTER] = filters
        call(func_name, **param)
dataset/ETHPy150Open osrg/ryu/ryu/services/protocols/bgp/bgpspeaker.py/BGPSpeaker._set_filter/swapped operands of `in`