code: def parse_prompts(prompts):
      res = []
      extra_data = None
  
      for prompt in prompts:
          updated_prompt, parsed_extra_data = parse_prompt(prompt)
  
          if extra_data is None:
              extra_data = parsed_extra_data
  
          res.append(updated_prompt)
  
      return res, extra_data
  
imports: import json
  import os
  import re
  import logging
  from collections import defaultdict
  from modules import errors
label_desc: Use image node_id 9 for calling a global function with example usage: parse_prompts(prompts) and returns: res,  extra_data