def check_same_keys(d1, d2):
    """Check if dictionaries have same keys or not.

    Args:
        d1: The first dict.
        d2: The second dict.

    Raises:
        ValueError if both keys do not match.
    """
    if d1.keys() == d2.keys():
        return True
    raise ValueError("Keys for both the dictionaries should be the same.")