def attach_effect(self, name=DEFAULT_EFFECT_NAME, effect_type=DEFAULT_EFFECT_TYPE,
                      parameters=None, shader=None, meta=None, raw=None):
        if raw:
            LOG.debug("effects:%s:elements:%i", name, len(raw.keys()))
            self.asset['effects'][name] = raw
        else:
            if parameters is None:
                parameters = { }
            if name not in self.asset['effects']:
                LOG.debug("effects:%s:type:%s", name, effect_type)
                effect = { 'type': effect_type, 'parameters': parameters }
                if shader is not None:
                    effect['shader'] = shader
                if meta is not None:
                    effect['meta'] = meta
                self.asset['effects'][name] = effect
validate a request from plivo
dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py/JsonAsset.attach_effect--crossover with--dataset/ETHPy150Open plivo/plivohelper-python/plivohelper.py/Utils.validateRequest