<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def plotDutyCycles(dutyCycle, filePath):
 """ Create plot showing histogram of duty cycles :param dutyCycle: (torch tensor) the duty cycle of each unit :param filePath: (str) Full filename of image file """

  _,entropy = binaryEntropy(dutyCycle)
  bins = np.linspace(0.0, 0.3, 200)
  plt.hist(dutyCycle, bins, alpha=0.5, label='All cols')
  plt.title("Histogram of duty cycles, entropy=" + str(float(entropy)))
  plt.xlabel("Duty cycle")
  plt.ylabel("Number of units")
  plt.savefig(filePath)
  plt.close()