code: def _p(rpath):
      return str(Path(PurePosixPath(rpath)))
  
file_path: datalad/datalad/local/tests/test_subdataset.py
imports: import os
  from os.path import join
  from os.path import pardir, relpath
  from datalad.api import clone, create, subdatasets
  from datalad.distribution.dataset import Dataset
  from datalad.tests.utils_pytest import assert_false, assert_in, assert_not_in, assert_repo_status, assert_result_count, assert_status, assert_true, eq_, slow, with_tempfile
  from datalad.utils import Path, PurePosixPath, chpwd
label_desc: Use image node_id 1 for calling a global function with example usage: _p(rpath) and returns: str