code: def get_matches(template: str):
      return list(KEYCRE.finditer(template))
  
imports: import os
  import re
  import typing
  from collections.abc import Iterable, Mapping
  from functools import singledispatch
  from funcy import memoize, rpartial
  from dvc.exceptions import DvcException
  from dvc.utils.flatten import flatten
label_desc: Use image node_id 2 for calling a global function with example usage: get_matches(template) and returns: list