code: def set_duty_cycle(self, pin, dutycycle):
          
          if dutycycle < 0.0 or dutycycle > 100.0:
              raise ValueError('Invalid duty cycle value, must be between 0.0 to 100.0 (inclusive).')
          self.bbio_pwm.set_duty_cycle(pin, dutycycle)
docs: Set percent duty cycle of PWM output on specified pin.  Duty cycle must
          be a value 0.0 to 100.0 (inclusive).