code: def test_github_path_purepath():
      """Tests that pathlib methods works as expected."""
      p = github_path.GithubPath(
          "github://tensorflow/datasets/tree/master"
      )
      sub_p = p / "some_folder"
      assert isinstance(sub_p, github_path.GithubPath)
      assert str(p) == "github://tensorflow/datasets/tree/master"
      assert (
          str(sub_p)
          == "github://tensorflow/datasets/tree/master/some_folder"
      )
      assert os.fspath(p) == "github://tensorflow/datasets/tree/master"
      assert p == github_path.GithubPath.from_repo(
          "tensorflow/datasets"
      )
  
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 5 for calling a global function with example usage: test_github_path_purepath() without return types