code: def test_parse_github_path():
      url = "github://tensorflow/datasets/tree/master/docs/README.md"
      repo, branch, path = github_path._parse_github_path(url)
      assert repo == "tensorflow/datasets"
      assert branch == "master"
      assert path == "docs/README.md"
  
      url = "github://tensorflow/datasets/tree/master"
      repo, branch, path = github_path._parse_github_path(url)
      assert repo == "tensorflow/datasets"
      assert branch == "master"
      assert path == ""
  
file_path: datasets/tensorflow_datasets/core/github_api/github_path_test.py
imports: import contextlib
  import os
  import textwrap
  from unittest import mock
  from etils import epath
  import pytest
  from tensorflow_datasets.core.github_api import github_path
label_desc: Use image node_id 2 for calling a global function with example usage: test_parse_github_path() without return types