code: def uncomment_magic(
      source,
      language="python",
      global_escape_flag=True,
      explicitly_code=True,
  ):
      """Unescape Jupyter magics"""
      parser = StringParser(language)
      next_is_magic = False
      for pos, line in enumerate(source):
          if not parser.is_quoted() and (
              next_is_magic
              or is_magic(
                  line, language, global_escape_flag, explicitly_code
              )
          ):
              source[pos] = unesc(line, language)
              next_is_magic = (
                  language == "python"
                  and _LINE_CONTINUATION_RE.match(line)
              )
          parser.read_line(line)
      return source
  
file_path: jupytext/src/jupytext/magics.py
imports: import re
  from .languages import _COMMENT, _SCRIPT_EXTENSIONS, usual_language_name
  from .stringparser import StringParser
label_desc: Use image node_id 6 for calling a global function with example usage: uncomment_magic(source, language, global_escape_flag, explicitly_code) and returns: source