code: def latest_tag(user: str, repo: str) -> List[Dict[str, Any]]:
      """
      Queries Docker Hub and finds the most recent tag for the specified image/repo pair
      """
      r = docker_api(f"repositories/{user}/{repo}/tags")
      results = r["results"]
  
      for result in results:
          result["last_updated"] = parse_docker_date(
              result["last_updated"]
          )
  
      results = list(sorted(results, key=lambda d: d["last_updated"]))
      results = [tag for tag in results if check_tag(tag)]
      return results[-1]
  
file_path: tvm/ci/scripts/jenkins/open_docker_update_pr.py
imports: import argparse
  import logging
  import datetime
  import os
  import json
  import re
  import shlex
  from urllib import error
  from typing import List, Dict, Any, Optional, Callable
  from git_utils import git, parse_remote, GitHubRepo
  from cmd_utils import REPO_ROOT, init_log
  from should_rebuild_docker import docker_api
label_desc: Use image node_id 4 for calling a global function with example usage: latest_tag(user, repo) and returns: results