docs: def set_pin_retries(ctx, pw_attempts, admin_pin, force):
      """
      Manage pin-retries.
  
      Sets the number of attempts available before locking for each PIN.
  
      PW_ATTEMPTS should be three integer values corresponding to the number of
      attempts for the PIN, Reset Code, and Admin PIN, respectively.
      """
      controller = ctx.obj['controller']
      resets_pins = controller.version < (4, 0, 0)
      if resets_pins:
          click.echo('WARNING: Setting PIN retries will reset the values for all '
                     '3 PINs!')
      force or click.confirm('Set PIN retry counters to: {} {} {}?'.format(
          *pw_attempts), abort=True, err=True)
      controller.set_pin_retries(*(pw_attempts + (admin_pin.encode('utf8'),)))
      click.echo('PIN retries successfully set.')
      if resets_pins:
          click.echo('Default PINs are set.')
          echo_default_pins()