code: def open_editor(initial_message):
      editor = os.environ.get("EDITOR", "vim")
      tmp = tempfile.NamedTemporaryFile(suffix=".tmp")
      fname = tmp.name
  
      with open(fname, "w") as f:
          f.write(initial_message)
          f.flush()
  
      call([editor, fname], close_fds=True)
  
      with open(fname, "r") as f:
          lines = f.readlines()
  
      return lines
  
imports: import os
  import tempfile
  import itertools
  import shutil
  import re
  from invoke import task, run
  from subprocess import call
  import semver
label_desc: Use image node_id 12 for calling a global function with example usage: open_editor(initial_message) and returns: lines