code: def check(self, data):
          
          for (name, value) in data.items():
              try:
                  self.set_checkbox({name: value}, uncheck_other_boxes=False)
                  continue
              except InvalidFormMethod:
                  pass
              try:
                  self.set_radio({name: value})
                  continue
              except InvalidFormMethod:
                  pass
              raise LinkNotFoundError("No input checkbox/radio named " + name)
docs: For backwards compatibility, this method handles checkboxes
          and radio buttons in a single call. It will not uncheck any
          checkboxes unless explicitly specified by ``data``, in contrast
          with the default behavior of :func:`~Form.set_checkbox`.