code: def set_blocks(self, blocks: Blocks):
      self.blocks = blocks
      self.capacity = blocks.state_session_capacity
  
file_path: gradio/gradio/state_holder.py
imports: from __future__ import annotations
  import threading
  from collections import OrderedDict
  from copy import deepcopy
  from typing import TYPE_CHECKING, Any
label_desc: Use image node_id 2 for calling the StateHolder obj's underlying member method code with example usage: obj.set_blocks(blocks) without return types