code: def compare_ignoring_whitespace(predicted, expected):
      predicted = re.sub("[ \t]+", " ", predicted.strip())
      predicted = re.sub("\r\n", "\n", predicted)
      expected = re.sub("[ \t]+", " ", expected.strip())
      expected = re.sub("\r\n", "\n", expected)
      assert predicted == expected
  
imports: import os
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: compare_ignoring_whitespace(predicted, expected) without return types