code: def diff(actual, expected):
      
      return '\n'.join(list(
          difflib.unified_diff(actual.splitlines(), expected.splitlines())
      ))
docs: normalize whitespace in actual and expected and return unified diff