code: def test_resolve_path_symlink_edition(path=None):
      deepest = ut.Path(path) / "one" / "two" / "three"
      deepest_str = str(deepest)
      os.makedirs(deepest_str)
      with chpwd(deepest_str):
          # direct absolute
          eq_(deepest, resolve_path(deepest))
          eq_(deepest, resolve_path(deepest_str))
          # explicit direct relative
          eq_(deepest, resolve_path("."))
          eq_(deepest, resolve_path(op.join(".", ".")))
          eq_(deepest, resolve_path(op.join("..", "three")))
          eq_(
              deepest, resolve_path(op.join("..", "..", "two", "three"))
          )
          eq_(
              deepest,
              resolve_path(
                  op.join("..", "..", "..", "one", "two", "three")
              ),
          )
          # weird ones
          eq_(deepest, resolve_path(op.join("..", ".", "three")))
          eq_(deepest, resolve_path(op.join("..", "three", ".")))
          eq_(deepest, resolve_path(op.join("..", "three", ".")))
          eq_(deepest, resolve_path(op.join(".", "..", "three")))
  
imports: import os
  import os.path
  from os.path import abspath
  from os.path import join
  from os.path import lexists, relpath
  import pytest
  import datalad.utils
  from datalad import cfg
  from datalad.api import clone, create, get
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import NoDatasetFound
  from datalad.support.gitrepo import GitRepo
  from datalad.tests.utils_pytest import OBSCURE_FILENAME, SkipTest, assert_equal, assert_false, assert_is, assert_is_instance, assert_is_none, assert_is_not, assert_is_not_none, assert_not_equal, assert_not_in, assert_raises, assert_repo_status, assert_result_count, assert_true, eq_, known_failure_windows, ok_, swallow_logs, with_tempfile
  from datalad.utils import Path, _path_, chpwd, on_windows, rmtree
  from ..dataset import Dataset, EnsureDataset, require_dataset, resolve_path
label_desc: Use image node_id 13 for calling a global function with example usage: test_resolve_path_symlink_edition(path) without return types