code: def format_to_woi_consistent(docs, woi_format_gold_docs):
      retrieved_docs = []
      retrieved_doc_titles = []
      for doc_str in docs:
          doc_splits = doc_str.split(TITLE_PASSAGE_DELIMITER)
          doc_passage = TITLE_PASSAGE_DELIMITER.join(doc_splits[1:])
          retrieved_docs.append(doc_passage)
          retrieved_doc_titles.append(doc_splits[0])
  
      woi_format_gold_docs.update(
          {
              woi_consts.RETRIEVED_DOCS: retrieved_docs,
              woi_consts.RETRIEVED_DOCS_TITLES: retrieved_doc_titles,
              woi_consts.RETRIEVED_DOCS_URLS: [
                  "" for _ in retrieved_docs
              ],
          }
      )
      return woi_format_gold_docs
  
imports: import os
  import copy
  import json
  import random
  from typing import Optional
  from parlai.utils.misc import warn_once
  from parlai.utils.data import DatatypeHelper
  from parlai.core.opt import Opt
  from parlai.core.teachers import DialogTeacher
  from parlai.core.params import ParlaiParser
  from parlai.core.message import Message
  from parlai.utils.io import PathManager
  from parlai.tasks.wizard_of_internet import constants
  from .mutators import normalize_reply, get_knowledge_appended_context, get_knowledge_sentence_with_special_tokens_only
  from .build import build
  from .constants import FeedbackType, TITLE_PASSAGE_DELIMITER, OK_LABEL, NOT_OK_LABEL
label_desc: Use image node_id 1 for calling a global function with example usage: format_to_woi_consistent(docs, woi_format_gold_docs) and returns: woi_format_gold_docs