code: def _gh_fetch_json_any(
      url: str,
      params: Optional[Dict[str, Any]] = None,
      data: Optional[Dict[str, Any]] = None,
  ) -> Any:
      headers = {"Accept": "application/vnd.github.v3+json"}
      if params is not None and len(params) > 0:
          url += "?" + "&".join(
              f"{name}={quote(str(val))}"
              for name, val in params.items()
          )
      return gh_fetch_url(
          url, headers=headers, data=data, reader=json.load
      )
  
file_path: pytorch/tools/github/github_utils.py
imports: import json
  import os
  from typing import Any, Callable, cast, Dict, Optional, Tuple
  from urllib.error import HTTPError
  from urllib.parse import quote
  from urllib.request import Request, urlopen
label_desc: Use image node_id 3 for calling a global function with example usage: _gh_fetch_json_any(url, params, data) and returns: gh_fetch_url