code: def github_compare_tags(
      tag_left: str, tag_right: str = "HEAD"
  ):  # noqa
      "Compare commit between two tags"
      response = httpx.get(
          f"{GITHUB_REPOS}/{OWNER}/{REPO}/compare/{tag_left}...{tag_right}"
      )
      if response.status_code == 200:
          return response.json()
      else:
          raise ValueError(response.text, response.status_code)
  
file_path: sktime/build_tools/changelog.py
imports: import os
  from collections import defaultdict
  from typing import Dict, List
  import httpx
  from dateutil import parser
label_desc: Use image node_id 4 for calling a global function with example usage: github_compare_tags(tag_left, tag_right) and returns: response