code: def chdir_to_tmp_path(cls, tmp_path):
      # Some doctests generate files, so this fixture runs the tests in a
      # temporary directory.
      original_directory = os.getcwd()
      os.chdir(tmp_path)
      yield
      os.chdir(original_directory)
  
file_path: cudf/python/cudf/cudf/tests/test_doctests.py
imports: import contextlib
  import doctest
  import inspect
  import io
  import itertools
  import os
  import numpy
  import pytest
  import cudf
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