code: def chdir_to_tmp_path(cls, tmp_path):
      original_directory = os.getcwd()
      try:
          os.chdir(tmp_path)
          yield
      finally:
          os.chdir(original_directory)
  
imports: import contextlib
  import doctest
  import inspect
  import io
  import os
  import numpy
  import pandas
  import scipy
  import pytest
  import cugraph
  import cudf
  from cugraph.testing import utils
label_desc: Use image node_id 1 for calling the TestDoctests obj's underlying member method code with example usage: obj.chdir_to_tmp_path(cls, tmp_path) without return types