class_docstr: A gr.Accordion that can be used as an input - returns True if open, False if closed.
  
  Actaully just a hidden checkbox, but creates an accordion that follows and is followed by the state of the checkbox.
class_docstr_tok: ["A","gr.Accordion","that","can","be","used","as","an","input","-","returns","True","if","open",",","False","if","closed",".","Actaully","just","a","hidden","checkbox",",","but","creates","an","accordion","that","follows","and","is","followed","by","the","state","of","the","checkbox","."]
code: def __init__(self, value, **kwargs):
      self.accordion_id = kwargs.get("elem_id")
      if self.accordion_id is None:
          self.accordion_id = (
              f"input-accordion-{InputAccordion.global_index}"
          )
          InputAccordion.global_index += 1
  
      kwargs_checkbox = {
          **kwargs,
          "elem_id": f"{self.accordion_id}-checkbox",
          "visible": False,
      }
      super().__init__(value, **kwargs_checkbox)
  
      self.change(
          fn=None,
          _js='function(checked){ inputAccordionChecked("'
          + self.accordion_id
          + '", checked); }',
          inputs=[self],
      )
  
      kwargs_accordion = {
          **kwargs,
          "elem_id": self.accordion_id,
          "label": kwargs.get("label", "Accordion"),
          "elem_classes": ["input-accordion"],
          "open": value,
      }
      self.accordion = gr.Accordion(**kwargs_accordion)
  
imports: import gradio
label_desc: Use image node_id 1 to create a new InputAccordion object from inherited base classes: gr with example: obj = InputAccordion(value)