def _get_all(self, collection, **kwargs):
        _, num_recs = super(T1, self)._get(PATHS['mgmt'], kwargs['_url'], params={
            'page_limit': 1,
            'parent': kwargs.get('parent'),
            'q': kwargs.get('query')
        })

        if kwargs.get('count'):
            yield num_recs

        for page_offset in six.moves.range(0, num_recs, 100):
            # get_all=False, otherwise we could go in a loop
            gen = self.get(collection,
                           _url=kwargs['_url'],
                           entity=kwargs.get('entity'),
                           include=kwargs.get('include'),
                           full=kwargs.get('full'),
                           page_offset=page_offset,
                           sort_by=kwargs.get('sort_by'),
                           parent=kwargs.get('parent'),
                           query=kwargs.get('query'),
                           get_all=False)
            if not isinstance(gen, GeneratorType):
                gen = iter([gen])
            for item in gen:
                yield item

    # def get_sub(self, collection, entity, sub, *args):
    #   pass
Collect stats from device
dataset/ETHPy150Open MediaMath/t1-python/terminalone/service.py/T1._get_all--crossover with--dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/servertechpdu/servertechpdu.py/ServerTechPDUCollector.collect_snmp