code: def differences(scansion: str, candidate: str) -> List[int]:
      """
      Given two strings, return a list of index positions where the contents differ.
  
      :param scansion:
      :param candidate:
      :return:
  
      >>> differences("abc", "abz")
      [2]
      """
      before = scansion.replace(" ", "")
      after = candidate.replace(" ", "")
      diffs = []
      for idx, tmp in enumerate(before):
          if before[idx] != after[idx]:
              diffs.append(idx)
      return diffs
  
imports: import re
  import sys
  import unicodedata
  from typing import Dict, List, Tuple
label_desc: Use image node_id 3 for calling a global function with example usage: differences(scansion, candidate) and returns: diffs