def get_im_version():
    try:
        out = util.command_output([b'identify', b'--version'])

        if 'imagemagick' in out.lower():
            pattern = r".+ (\d+)\.(\d+)\.(\d+).*"
            match = re.search(pattern, out)
            if match:
                return (int(match.group(1)),
                        int(match.group(2)),
                        int(match.group(3)))
            return (0,)

    except (subprocess.CalledProcessError, OSError):
        return None
Return a joined string of HTML anchors to every index instance's
dataset/ETHPy150Open beetbox/beets/beets/util/artresizer.py/get_im_version--crossover with--dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/document_indexing/widgets.py/get_breadcrumbs