def METHOD_NAME(self, img_type, outf):
    if not config.core.dot:
        logger.error("dot not found")
        return False
    dotf = self.totmpf()
    if not dotf:
        return False
    tmpfiles.add(dotf)
    return (utils.ext_cmd_nosudo("%s -T%s -o%s %s" %
                                 (config.core.dot, img_type, outf, dotf)) == 0)