def METHOD_NAME(self, startPt, endPt):
    try:
        from dijkstar import find_path
    except ImportError:
        raise ImportError(
            "You need to install the package `dijkstar`." "\nInstall dijkstar via `pip install --upgrade dijkstar`"
        )
    if self.image is None:
        raise AttributeError("Load an image first!")
    path = find_path(self.G, startPt, endPt)[0]
    return np.array(path)