import numpy as np import matplotlib.pyplot as plt def plotPath(img): plt.matshow(img) plt.colorbar() plt.show() return 1