code: def validate_id_string(arg):
      arg_id = arg.component_id
  
      invalid_chars = ".{"
      invalid_found = [x for x in invalid_chars if x in arg_id]
      if invalid_found:
          raise exceptions.InvalidComponentIdError(
              f"""
              The element `{arg_id}` contains `{"`, `".join(invalid_found)}` in its ID.
              Characters `{"`, `".join(invalid_chars)}` are not allowed in IDs.
              """
          )
  
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 4 for calling a global function with example usage: validate_id_string(arg) without return types