def get_file(self, path, outpath=None):
        """Downloads the file at the given path.

        Args:
            path: the filepath in the repository
            outpath (None): a path on disk to write the file

        Returns:
            the file bytes, if no ``outpath`` is provided
        """
        if self.ref:
            ref = self.ref
        else:
            ref = self.get_repo_info()["default_branch"]

        url = f"https://raw.githubusercontent.com/{self.user}/{self.repo}/{ref}/{path}"
        content = self._get(url, json=False)

        if outpath is not None:
            etau.write_file(content, outpath)
            return

        return content
Downloads the file at the given path.

        Args:
            path: the filepath in the repository
            outpath (None): a path on disk to write the file

        Returns:
            the file bytes, if no ``outpath`` is provided
        
fiftyone/utils/github.py