(self, key, base_class_name=None, settings=None)
return formatted_key
>>> MediaPipeline()._key_for_pipe("IMAGES")
        'IMAGES'
        >>> class MyPipe(MediaPipeline):
        ...     pass
        >>> MyPipe()._key_for_pipe("IMAGES", base_class_name="MediaPipeline")
        'MYPIPE_IMAGES'
>>> MediaPipeline()._key_for_pipe("IMAGES")
        'IMAGES'
        >>> class MyPipe(MediaPipeline):
        ...     pass
        >>> MyPipe()._key_for_pipe("IMAGES", base_class_name="MediaPipeline")
        'MYPIPE_IMAGES'
>>> 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):
        """
        >>> MediaPipeline()._key_for_pipe("IMAGES")
        'IMAGES'
        >>> class MyPipe(MediaPipeline):
        ...     pass
        >>> MyPipe()._key_for_pipe("IMAGES", base_class_name="MediaPipeline")
        'MYPIPE_IMAGES'
        """
        class_name = self.__class__.__name__
        formatted_key = f"{class_name.upper()}_{key}"
        if (
            not base_class_name
            or class_name == base_class_name
            or settings and not settings.get(formatted_key)
        ):
            return key
        return formatted_key
def _key_for_pipe ( self , key , base_class_name = None , settings = None ) : class_name = self . __class__ . __name__ formatted_key = f"{class_name.upper()}_{key}" if ( not base_class_name or class_name == base_class_name or settings and not settings . get ( formatted_key ) ) : return key return formatted_key