def all_keys_not_none(d: dict, required: list):
    """
    Check all values for given keys is not None
    :param d:
    :param required:
    :return:
    """
    passed = 0
    for r in required:
        v = d.get(r)
        if v is not None:
            passed += 1
    return len(required) == passed
