Import the required libraries. Two new packages, Path and patches, will be introduced here:
import matplotlib.pyplot as pltfrom matplotlib.path import Pathimport matplotlib.patches as patches