'>>> MediaPipeline()._key_for_pipe("IMAGES")
\'IMAGES\'
>>> class MyPipe(MediaPipeline):
...     pass
>>> MyPipe()._key_for_pipe("IMAGES", base_class_name="MediaPipeline")
\'MYPIPE_IMAGES\''

def _key_for_pipe(self, key, base_class_name=None, settings=None):

    class_name = self.__class__.__name__
    formatted_key = '{}_{}'.format(class_name.upper(), key)
    if ((class_name == base_class_name) or (not base_class_name) or (settings and (not settings.get(formatted_key)))):
        return key
    return formatted_key
