code: def convert_to_note(text, note_type):
      """Convert text to a note of note_type."""
      text = remove_indentation(text)
      lines = text.split("\n")
      new_lines = [f"> **{note_type.upper()}:** {lines[0]}"]
      new_lines += [f"> {line}" for line in lines[1:]]
      return "\n".join(new_lines)
  
imports: import nbformat
  import os
  import re
  import shutil
label_desc: Use image node_id 6 for calling a global function with example usage: convert_to_note(text, note_type) and returns: str