def METHOD_NAME(adict):
    """Check if the dictionary keys are integers or tuples.
    If they are not, raise a KeyError
    """
    for key in adict:
        if not isinstance(key, (int, tuple)):
            raise KeyError("Key must be integer or a tuple (of integers)")