code: def normalize_token_spacing(code):
      tokens = [
          (t[0], t[1])
          for t in tokenize.generate_tokens(StringIO(code).readline)
      ]
      return pretty_untokenize(tokens)
  
file_path: patsy/patsy/tokens.py
imports: import tokenize
  from six.moves import cStringIO
  from patsy import PatsyError
  from patsy.origin import Origin
label_desc: Use image node_id 4 for calling a global function with example usage: normalize_token_spacing(code) and returns: pretty_untokenize