def _set_instance_attributes(self, parent, definition):
        if isinstance(self.__class__.keys, dict):
            keys = self.__class__.keys[self.api_version]
        else:
            keys = self.__class__.keys

        for k in keys:
            if k in definition:
                setattr(self, k, definition[k])
            else:
                setattr(self, k, None)
dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/resources/base_resource.py/BaseResource._set_instance_attributes/original