def METHOD_NAME(album):
    """Checks for .nozip_gallery file in album folder.
    If this file exists, no ZIP archive is generated.
    If the file is absent, make a ZIP archive with all media files and return its path.
    If the ``zip_gallery`` setting is set,it contains the location of a zip
    archive with all original images of the corresponding directory.
    """
    # check if ZIP file generation as been disabled by .nozip_gallery file
    if not _should_generate_album_zip(album):
        logger.info(
            "Ignoring ZIP gallery generation for album '%s' because of present "
            ".nozip_gallery file",
            album.name,
        )
        return False
    return _generate_album_zip(album)