code: def _check_pwm_list(pwm_list):
      
      for pwm in pwm_list:
          if not isinstance(pwm, PWM):
              raise TypeError("element {0} of pwm_list is not of type PWM".format(pwm))
      return True
docs: Check the input validity