docstr: Parameters:
      value: the initial value (of arbitrary type) of the state. The provided argument is deepcopied. If a callable is provided, the function will be called whenever the app loads to set the initial value of the state.
      render: has no effect, but is included for consistency with other components.
docstr_tok: ["Parameters",":","value",":","the","initial","value","(","of","arbitrary","type",")","of","the","state",".","The","provided","argument","is","deepcopied",".","If","a","callable","is","provided",",","the","function","will","be","called","whenever","the","app","loads","to","set","the","initial","value","of","the","state",".","render",":","has","no","effect",",","but","is","included","for","consistency","with","other","components","."]
code: def __init__(
      self,
      value: Any = None,
      render: bool = True,
  ):
      """
      Parameters:
          value: the initial value (of arbitrary type) of the state. The provided argument is deepcopied. If a callable is provided, the function will be called whenever the app loads to set the initial value of the state.
          render: has no effect, but is included for consistency with other components.
      """
      self.stateful = True
      try:
          self.value = deepcopy(value)
      except TypeError as err:
          raise TypeError(
              f"The initial value of `gr.State` must be able to be deepcopied. The initial value of type {type(value)} cannot be deepcopied."
          ) from err
      super().__init__(value=self.value)
  
file_path: gradio/gradio/components/state.py
imports: from __future__ import annotations
  from copy import deepcopy
  from typing import Any
  from gradio_client.documentation import document, set_documentation_group
  from gradio.components.base import Component
label_desc: Use image node_id 1 to create a new State object from inherited base classes: Component with example: obj = State(value, render)