def _collect_fakers_for_locales(self):
    cached_locales = []
    language_locale_codes = providers.BaseProvider.language_locale_codes
    for (code, countries) in language_locale_codes.items():
        for country in countries:
            name = f'{code}_{country}'
            try:
                faker = Faker(name)
                cached_locales.append(faker)
            except AttributeError as e:
                print(f'Cannot generate faker for {name}: {e}. Skipped')
    return cached_locales
def _collect_fakers_for_locales(self):
    cached_locales = []
    language_locale_codes = providers.BaseProvider.language_locale_codes
    for (code, countries) in language_locale_codes.items():
        for country in countries:
            name = f'{code}_{country}'
            try:
                faker = Faker(name)
                cached_locales.append(faker)
            except AttributeError as e:
                print(f'Cannot generate faker for {name}: {e}. Skipped')
    return cached_locales