code: def split_ray_repo_str(repo_str: str) -> Tuple[str, str]:
      if "https://" in repo_str:
          if "/tree/" in repo_str:
              url, branch = repo_str.split("/tree/", maxsplit=2)
              return f"{url}.git", branch.rstrip("/")
          return repo_str, DEFAULT_BRANCH  # Default branch
  
      if ":" in repo_str:
          owner_or_url, commit_or_branch = repo_str.split(":")
      else:
          owner_or_url = repo_str
          commit_or_branch = DEFAULT_BRANCH
  
      # Else, construct URL
      url = f"https://github.com/{owner_or_url}/ray.git"
      return url, commit_or_branch
  
file_path: ray/release/ray_release/buildkite/settings.py
imports: import enum
  import os
  import subprocess
  from typing import Optional, Dict, Tuple
  from ray_release.exception import ReleaseTestConfigError
  from ray_release.logger import logger
  from ray_release.wheels import DEFAULT_BRANCH, get_buildkite_repo_branch
label_desc: Use image node_id 4 for calling a global function with example usage: split_ray_repo_str(repo_str) and returns: url,  commit_or_branch, repo_str,  DEFAULT_BRANCH, url, str,  branch