def _yield_roles(conn):
    for resp in _repeat(conn.list_roles):
        for role_data in resp['roles']:
            yield _get_role_name_and_document(role_data)
Yield (role_name, role_document).
dataset/ETHPy150Open Yelp/mrjob/mrjob/iam.py/_yield_roles