code: def _check_if_has_indexable_children(item):
      if not hasattr(item, "children") or (
          not isinstance(item.children, Component)
          and not isinstance(item.children, (tuple, MutableSequence))
      ):
          raise KeyError
  
imports: import abc
  import collections
  import inspect
  import sys
  import uuid
  import random
  from .._utils import patch_collections_abc, stringify_id, OrderedSet
label_desc: Use image node_id 2 for calling a global function with example usage: _check_if_has_indexable_children(item) without return types