code: def iter_replace_strings(replacements):
          
          def function_iter_replace_strings(iterable_strings):
              """Yield a formatted string from iterable_strings using a generator.
  
              Args:
                  iterable_strings: Iterable containing strings. E.g a file-like
                                    object.
  
              Returns:
                  Yields formatted line.
  
              """
              for string in iterable_strings:
                  yield reduce((lambda s, kv: s.replace(*kv)),
                               replacements.items(),
                               string)
  
          return function_iter_replace_strings
docs: Create a function that uses replacement pairs to process a string.
  
          The returned function takes an iterator and yields on each processed
          line.
  
          Args:
              replacements: Dict containing 'find_string': 'replace_string' pairs
  
          Returns:
              function with signature: iterator of strings = function(iterable)