code: def _regex_list_rename_func(k, rename_list):
      for o, n in rename_list:
          match = re.match(o, k)
          if match:
              return n.format(match.group(1))
      return k
  
imports: import copy
  import logging
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: _regex_list_rename_func(k, rename_list) and returns: k, n