def METHOD_NAME(hosts: List[str]):
    """
    Yields successive n-sized chunks from target hosts.
    """
    for i in range(0, len(hosts), CHUNK_SIZE):
        logging.debug(
            'Yielding [%s:%s] from target hosts', i, i + CHUNK_SIZE,
        )
        yield hosts[i:i + CHUNK_SIZE]