class_docstr: Creates a checkbox that can be set to `True` or `False`.
  
  Preprocessing: passes the status of the checkbox as a {bool} into the function.
  Postprocessing: expects a {bool} returned from the function and, if it is True, checks the checkbox.
  Examples-format: a {bool} representing whether the box is checked.
  Demos: sentence_builder, titanic_survival
class_docstr_tok: ["Creates","a","checkbox","that","can","be","set","to","`","True","`","or","`","False","`",".","Preprocessing",":","passes","the","status","of","the","checkbox","as","a","{","bool","}","into","the","function",".","Postprocessing",":","expects","a","{","bool","}","returned","from","the","function","and",",","if","it","is","True",",","checks","the","checkbox",".","Examples-format",":","a","{","bool","}","representing","whether","the","box","is","checked",".","Demos",":","sentence_builder",",","titanic_survival"]
code: def api_info(self) -> dict[str, Any]:
      return {"type": "boolean"}
  
file_path: gradio/gradio/components/checkbox.py
imports: from __future__ import annotations
  from typing import Any, Callable
  from gradio_client.documentation import document, set_documentation_group
  from gradio.components.base import FormComponent
  from gradio.events import Events
label_desc: Use image node_id 2 for calling the Checkbox obj's underlying member method code with example usage: obj.api_info() and returns: dict