code: def replace_issue_number_with_links(text):
      return re.sub(
          r"([^\[])#([0-9]+)",
          r"\1[#\2](https://github.com/mwouts/jupytext/issues/\2)",
          text,
      )
  
imports: import re
  import sys
  from pathlib import Path
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: replace_issue_number_with_links(text) and returns: re