def METHOD_NAME(label, gamma):
    if label in gamma:
        raise Exception(
            'Expected "{}" to be a label, but it was a'
            ' variable of type "{}"'
            .format(label, gamma[label])
        )