code: def check_pr_title(
      pr_number: int,
      model: Model = "gpt-4",
      repo_name: str = "wandb/wandb",
  ) -> bool:
      """Check whether a PR title follows the conventional commit format."""
      pr_title, _ = get_pr_info(
          pr_number, repo_name=repo_name, get_diff=False
      )
  
      messages = [
          {
              "role": "system",
              "content": (
                  "Your task is to check whether the title for a GitHub pull request "
                  "follows the conventional commit format: "
                  f"<type>(<scope>): <description>. The possible types are: {CC_TYPES}."
                  f"The possible scopes are: {CC_SCOPES}."
                  "The description must start with a verb in the imperative mood and be lower case."
                  "The user will provide the current PR title. You must respond with 'yes' or 'no'."
              ),
          },
          {
              "role": "user",
              "content": f"{pr_title}",
          },
      ]
  
      response = chat_completion_with_backoff(
          model=model,
          messages=messages,
      )
      # fixme:
      is_compliant = (
          response.choices[0]["message"]["content"].lower().strip()
      )
      print(is_compliant)
  
      return is_compliant == "yes"
  
file_path: wandb/tools/pr-title-bot.py
imports: import argparse
  import os
  import sys
  from typing import Optional, Tuple
  from github import Github
  from openai import OpenAI
  from tenacity import retry, stop_after_attempt, wait_random_exponential
label_desc: Use image node_id 3 for calling a global function with example usage: check_pr_title(pr_number, model, repo_name) and returns: unknown