def __init__(self, values_dict):
        if 'pk' not in values_dict:
            raise Exception("'pk' key is required")
        self.__dict__.update(values_dict)
dataset/ETHPy150Open AltSchool/dynamic-rest/dynamic_rest/serializers.py/EphemeralObject.__init__/original