code: def stress_positions(stress: str, scansion: str) -> List[int]:
      """
      Given a stress value and a scansion line, return the index positions of the stresses.
  
      :param stress:
      :param scansion:
      :return:
  
      >>> stress_positions("-", "    -  U   U - UU    - U U")
      [0, 3, 6]
      """
      line = scansion.replace(" ", "")
      stresses = []
      for idx, char in enumerate(line):
          if char == stress:
              stresses.append(idx)
      return stresses
  
imports: import re
  import sys
  import unicodedata
  from typing import Dict, List, Tuple
label_desc: Use image node_id 10 for calling a global function with example usage: stress_positions(stress, scansion) and returns: stresses