code: def test_github_api_copy(tmp_path):
      p = github_path.GithubPath.from_repo(
          "tensorflow/datasets", "v3.1.0"
      )
      src = p / "AUTHORS"
      dst = tmp_path / "AUTHORS"
  
      target = src.copy(dst)
      assert target == dst
      assert dst.read_text() == _AUTHOR_EXPECTED_CONTENT
  
      with pytest.raises(
          FileExistsError, match="Destination .* exists"
      ):
          src.copy(dst)
  
      src.copy(dst, overwrite=True)
  
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 10 for calling a global function with example usage: test_github_api_copy(tmp_path) without return types