code: def flatten(container: Iterable) -> Iterable:
      """Flatten arbitrarily flattened list
  
      From https://stackoverflow.com/a/10824420
      """
      for i in container:
          if isinstance(i, (list, tuple)):
              for j in flatten(i):
                  yield j
          else:
              yield i
  
imports: import keyword
  import re
  import subprocess
  import textwrap
  import urllib
  from typing import Any, Dict, Final, Iterable, List, Optional, Union
  from .schemapi import _resolve_references
label_desc: Use image node_id 6 for calling a global function with example usage: flatten(container) without return types