def METHOD_NAME(path):
    """
    Calculate MD5 checksum for image.
    :param path: image path
    :returns: MD5 checksum
    """
    with open(path, "rb") as fd:
        m = hashlib.md5()
        while True:
            data = fd.read(8192)
            if not data:
                break
            m.update(data)
        return m.hexdigest()