code: def validate_id_dict(arg):
      arg_id = arg.component_id
  
      for k in arg_id:
          # Need to keep key type validation on the Python side, since
          # non-string keys will be converted to strings in json.dumps and may
          # cause unwanted collisions
          if not isinstance(k, str):
              raise exceptions.IncorrectTypeException(
                  dedent(
                      f"""
                      Wildcard ID keys must be non-empty strings,
                      found {k!r} in id {arg_id!r}
                      """
                  )
              )
  
imports: from collections.abc import MutableSequence
  import re
  from textwrap import dedent
  from keyword import iskeyword
  import flask
  from ._grouping import grouping_len, map_grouping
  from .development.base_component import Component
  from .None import exceptions
  from ._utils import patch_collections_abc, stringify_id, to_json, coerce_to_list, clean_property_name
label_desc: Use image node_id 3 for calling a global function with example usage: validate_id_dict(arg) without return types