code: def print_settings(settings, depth=0):
      
      # handle the case where a single setting is passed
      if isinstance(settings, Setting):
          settings = [settings]
      for setting in settings:
          cur = setting.currentValue
          print(
              "%s* %s (%s, value: %s, type: %s)"
              % (
                  " " * depth,
                  setting.title,
                  setting.target,
                  click.style(cur, bold=True),
                  setting.type,
              )
          )
          for opt in setting.candidate:
              if not opt.isAvailable:
                  logging.debug("Unavailable setting %s", opt)
                  continue
              click.echo(
                  click.style(
                      "%s  - %s (%s)" % (" " * depth, opt.title, opt.value),
                      bold=opt.value == cur,
                  )
              )
docs: Print all available settings of the device.