code: async def check_update(dev: Device, internet: bool, update: bool):
      
      if internet:
          print("Checking updates from network")
      else:
          print("Not checking updates from internet")
      update_info = await dev.get_update_info(from_network=internet)
      if not update_info.isUpdatable:
          click.echo("No updates available.")
          return
      if not update:
          click.echo("Update available: %s" % update_info)
          click.echo("Use --update to activate update!")
      else:
          click.echo("Activating update, please be seated.")
          res = await dev.activate_system_update()
          click.echo("Update result: %s" % res)
docs: Print out update information.