def METHOD_NAME(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