code: def input_validate_yubikey_secret(data, name='data'):
      
      if isinstance(data, pyhsm.aead_cmd.YHSM_YubiKeySecret):
          data = data.pack()
      return input_validate_str(data, name)
docs: Input validation for YHSM_YubiKeySecret or string.