code: def write_end2end_pickle_output(sentences, mentions, output_file_id):
      obj = {"sentences": sentences, "mentions": mentions}
      with open(
          get_end2end_pickle_output_file_path(output_file_id), "wb"
      ) as file:
          pickle.dump(obj, file)
  
file_path: BLINK/blink/utils.py
imports: import io
  import json
  import os
  import pickle
  from segtok.segmenter import split_multi
label_desc: Use image node_id 10 for calling a global function with example usage: write_end2end_pickle_output(sentences, mentions, output_file_id) without return types