code: def convert_github_markdown_to_pypi(
      input_file, output_file, repo, version
  ):
      with open(input_file, encoding="utf-8") as file:
          content = file.read()
  
      # Regular expression pattern to match <picture> and <source> tags
      pattern = r"<picture>\s*<source[^>]*>\s*(<img[^>]*>)\s*</picture>"
  
      # Replace matched patterns with the contents of the <img> tag
      content = re.sub(pattern, r"\1", content)
  
      # Regular expression patterns to match <img> and <a> tags with relative links
      img_pattern = r'(<img[^>]* src=")(?!https://)([^"]*)"'
      a_pattern = r'(<a href=")(?!https://)([^"]*)"'
  
      # Replace matched patterns with absolute links
      content = re.sub(
          img_pattern,
          r"\1https://raw.githubusercontent.com/"
          + repo
          + "/"
          + version
          + r'/\2"',
          content,
      )
      content = re.sub(
          a_pattern,
          r"\1https://github.com/"
          + repo
          + "/tree/"
          + version
          + r'/\2"',
          content,
      )
  
      # Write the modified content to the output file
      with open(output_file, "w", encoding="utf-8") as file:
          file.write(content)
  
imports: import argparse
  from pathlib import Path
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: convert_github_markdown_to_pypi(input_file, output_file, repo, version) without return types