code: def validate_template(template):
      variable_names = re.findall("<(.*?)>", template)
  
      for name in variable_names:
          if not name.isidentifier() or iskeyword(name):
              raise Exception(
                  f'`{name}` is not a valid Python variable name in `path_template`: "{template}".'
              )
  
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 14 for calling a global function with example usage: validate_template(template) without return types