class_docstr: Creates a set of checkboxes of which a subset can be checked.
  Preprocessing: passes the list of checked checkboxes as a {List[str | int | float]} or their indices as a {List[int]} into the function, depending on `type`.
  Postprocessing: expects a {List[str | int | float]}, each element of which becomes a checked checkbox.
  Examples-format: a {List[str | int | float]} representing the values to be checked.
  Demos: sentence_builder, titanic_survival
class_docstr_tok: ["Creates","a","set","of","checkboxes","of","which","a","subset","can","be","checked",".","Preprocessing",":","passes","the","list","of","checked","checkboxes","as","a","{","List","[","str","|","int","|","float","]","}","or","their","indices","as","a","{","List","[","int","]","}","into","the","function",",","depending","on","`","type","`",".","Postprocessing",":","expects","a","{","List","[","str","|","int","|","float","]","}",",","each","element","of","which","becomes","a","checked","checkbox",".","Examples-format",":","a","{","List","[","str","|","int","|","float","]","}","representing","the","values","to","be","checked",".","Demos",":","sentence_builder",",","titanic_survival"]
code: def postprocess(
      self, value: list[str | int | float] | str | int | float | None
  ) -> list[str | int | float]:
      if value is None:
          return []
      if not isinstance(value, list):
          value = [value]
      return value
  
file_path: gradio/gradio/components/checkboxgroup.py
imports: from __future__ import annotations
  from typing import Any, Callable, Literal
  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 5 for calling the CheckboxGroup obj's underlying member method code with example usage: obj.postprocess(value) and returns: value, list