code: def parse_pr_number(body, commit_hash, title):
      regex = r"(#[0-9]+)"
      matches = re.findall(regex, title)
      if len(matches) == 0:
          if (
              "revert" not in title.lower()
              and "updating submodules" not in title.lower()
          ):
              print(
                  f"[{commit_hash}: {title}] Could not parse PR number, ignoring PR"
              )
          return None
      if len(matches) > 1:
          print(
              f"[{commit_hash}: {title}] Got two PR numbers, using the last one"
          )
          return matches[-1][1:]
      return matches[0][1:]
  
imports: import json
  import locale
  import os
  import re
  import subprocess
  from collections import namedtuple
  from os.path import expanduser
  import requests
label_desc: Use image node_id 7 for calling a global function with example usage: parse_pr_number(body, commit_hash, title) and returns: matches, None, matches