def METHOD_NAME(
    loader_config: Iterable[Union[str, Dict[str, Dict[str, str]]]]
) -> List[Loader]:
    loaders = []
    for entry in loader_config:
        if isinstance(entry, str):
            loader = default_loader_for_file(entry)
        elif isinstance(entry, dict):
            if len(entry) > 1:
                raise click.ClickException(
                    f"Invalid config. Dictionary entries should only have one key: {entry}"
                )
            class_name = next(iter(entry.keys()))
            loader = _resolve_class(class_name, "linkml.validator.loaders", **entry[class_name])
        else:
            raise click.ClickException(
                "Invalid config. Data sources must be specified as a string or as dictionary."
            )
        loaders.append(loader)
    return loaders