def _validate(self):
        if self.resource_type not in ('photo', 'video', 'rich', 'link'):
            raise ValueError('resource_type must be one of "photo", "video", "rich" or "link"')
dataset/ETHPy150Open worldcompany/djangoembed/oembed/providers.py/DjangoProvider._validate/original