code: def close_all(verbose: bool = True) -> None:
      for io in Interface.get_instances():
          io.close(verbose)
  
imports: from __future__ import annotations
  import inspect
  import json
  import os
  import warnings
  import weakref
  from typing import TYPE_CHECKING, Any, Callable, Literal
  from gradio_client.documentation import document, set_documentation_group
  from gradio import Examples, utils
  from gradio.blocks import Blocks
  from gradio.components import Button, ClearButton, Component, DuplicateButton, Markdown, State, get_component_instance
  from gradio.data_classes import InterfaceTypes
  from gradio.events import Events, on
  from gradio.exceptions import RenderError
  from gradio.flagging import CSVLogger, FlaggingCallback, FlagMethod
  from gradio.layouts import Accordion, Column, Row, Tab, Tabs
  from gradio.pipelines import load_from_pipeline
  from gradio.themes import ThemeClass
label_desc: Use image node_id 1 for calling a global function with example usage: close_all(verbose) without return types