code: def substitute_found_list_items(
      self, regex, each, strip, replacement
  ):
      def replace_item(match, val=None, strip=False, repl="♨"):
          match = match.group()
          if strip:
              match = str(match).strip()
          chomped_match = (
              match if len(match) == 1 else match.strip(".])")
          )
          if str(each) == chomped_match:
              return "{}{}".format(each, replacement)
          else:
              return str(match)
  
      self.text = re.sub(
          regex,
          partial(
              replace_item, val=each, strip=strip, repl=replacement
          ),
          self.text,
      )
  
imports: import string
  import re
  from pysbd.utils import Rule, Text
  from functools import partial
label_desc: Use image node_id 12 for calling the ListItemReplacer obj's underlying member method code with example usage: obj.substitute_found_list_items(regex, each, strip, replacement) and returns: str, str