from typing import Iterable


def check_all_dicts(iterable_dict: Iterable[dict]):
    """Check if Iterable contains all dictionaries

    Args:
        iterable_dict (Iterable[dict]): Iterable of dictionaries
    """
    # Check if dict
    def check_dict(d):
        return isinstance(d, dict)

    # Check if all instances are type dict, return True or False
    all_dict = all(map(check_dict, iterable_dict))
    # print(all_dict)

    if not all_dict:
        raise BaseException("Iterable has mixed types, expected Iterable[dictionaries]")

    return True