code: def _enumerate_subgraphs(graph):
      for node in graph.node:
          for att in node.attribute:
              if att.g:
                  yield att.g
                  yield from _enumerate_subgraphs(att.g)
  
imports: from __future__ import annotations
  import os
  import sys
  from typing import Any, Iterable
  import numpy
  import onnx
  import onnx.external_data_helper
  import onnx.helper
label_desc: Use image node_id 2 for calling a global function with example usage: _enumerate_subgraphs(graph) without return types