def is_dictlist(data):
    if isinstance(data, list):
        for element in data:
            if isinstance(element, dict):
                if len(element) != 1:
                    return False
            else:
                return False
        return True
    return False
Returns True if data is a list of one-element dicts (as found in many SLS
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/is_dictlist