code: def _testing_docker_api(
      data: Dict[str, Any]
  ) -> Callable[[str], Dict[str, Any]]:
      """Returns a function that can be used in place of docker_api"""
  
      def mock(url: str) -> Dict[str, Any]:
          if url in data:
              return data[url]
          else:
              raise error.HTTPError(
                  url, 404, f"Not found: {url}", {}, None
              )
  
      return mock
  
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 1 for calling a global function with example usage: _testing_docker_api(data) and returns: mock, data