class_docstr: Class to issue calls to the Github API.
class_docstr_tok: ["Class","to","issue","calls","to","the","Github","API","."]
docstr: Queries a repository tree.
  
  See https://docs.github.com/en/rest/reference/git#trees
  
  Args:
    repo: the repository
    branch: the branch for which to get the tree
  
  Returns:
    JSON dict with the tree.
docstr_tok: ["Queries","a","repository","tree",".","See","https",":","\/\/docs.github.com\/en\/rest\/reference\/git","#","trees","Args",":","repo",":","the","repository","branch",":","the","branch","for","which","to","get","the","tree","Returns",":","JSON","dict","with","the","tree","."]
code: def query_tree(self, repo: str, branch: str) -> JsonValue:
      """Queries a repository tree.
  
      See https://docs.github.com/en/rest/reference/git#trees
  
      Args:
        repo: the repository
        branch: the branch for which to get the tree
  
      Returns:
        JSON dict with the tree.
      """
      url = f"https://api.github.com/repos/{repo}/git/trees/{branch}?recursive=1"
      return self.query(url)
  
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 3 for calling the GithubApi obj's underlying member method code with example usage: obj.query_tree(repo, branch) and returns: self