code: def substitution(old, new):
      """
      Return a function that will perform a substitution on a string
      """
      return lambda s: s.replace(old, new)
  
imports: import re
  import itertools
  import textwrap
  import functools
  from pkg_resources.extern.jaraco.functools import compose, method_cache
  from pkg_resources.extern.jaraco.context import ExceptionTrap
label_desc: Use image node_id 1 for calling a global function with example usage: substitution(old, new) and returns: function