class_docstr: Class to issue calls to the Github API.
class_docstr_tok: ["Class","to","issue","calls","to","the","Github","API","."]
docstr: Launches a Github API query and returns the result.
docstr_tok: ["Launches","a","Github","API","query","and","returns","the","result","."]
code: def query(self, url: str) -> JsonValue:
      """Launches a Github API query and returns the result."""
      headers = {}
      if self._token:
          headers["Authorization"] = f"token {self._token}"
      resp = requests.get(url, headers=headers)
      if resp.status_code != 200:
          raise FileNotFoundError(
              (
                  "Request failed:\n"
                  f" Request: {url}\n"
                  f" Error: {resp.status_code}\n"
                  f" Reason: {resp.content}"
              ),
          )
      return resp.json()
  
imports: import dataclasses
  import functools
  import os
  import pathlib
  import posixpath
  from typing import Iterator, Mapping, MutableMapping, Optional, Set, Tuple
  from etils import epath
  import requests
  from tensorflow_datasets.core import utils
label_desc: Use image node_id 2 for calling the GithubApi obj's underlying member method code with example usage: obj.query(url) and returns: resp