def METHOD_NAME(
    reports,
    client,
    account_ids,
    logger=LOGGER,
    return_streams: bool = False,
    selected_streams: List = [],
):
    logger.info('Starting discover')
    # check_credentials(client, TwitterAds(), account_ids)    # validating credentials
    catalog = discover(reports)
    catalog_dict = catalog.to_dict()
    logger.info('Finished discover')
    if return_streams:
        return catalog_dict
    json.dump(catalog_dict, sys.stdout, indent=2)