import matplotlib pyplot as plt import numpy as np nextwe will be plotting the datapoints we have taken for this examplex np array([[ , ],[ , ],[ , ],[ , ],[ , ],[ , ],[ , ][ , ],[ , ],[ , ],]labels range( plt figure(figsize=( )plt subplots_adjust(bottom= plt scatter( [:, ], [:, ]label='true position'for labelxy in zip(labelsx[: ] [: ])plt annotate(label,xy=(xy)xytext=(- ),textcoords='offset points'ha='right'va='bottom'plt show(from the above diagramit is very easy to see that we have two clusters in out datapoints but in the real world datathere can be thousands of clusters nextwe will be plotting the dendrograms of our datapoints by using scipy libraryfrom scipy cluster hierarchy import dendrogramlinkage from matplotlib import pyplot as plt linked linkage( 'single'labellist range( plt figure(figsize=( )