code: def replace_feature_name(rule, replace_dict):
      def replace(match):
          return replace_dict[match.group(0)]
  
      rule = re.sub(
          "|".join(r"\b%s\b" % re.escape(s) for s in replace_dict),
          replace,
          rule,
      )
      return rule
  
file_path: skope-rules/skrules/rule.py
imports: import re
label_desc: Use image node_id 1 for calling a global function with example usage: replace_feature_name(rule, replace_dict) and returns: rule, replace_dict