code: def test_construct_path():
      assert construct_path(Path("/a"), Path("/b")) == Path("/a")
      assert construct_path(Path("/a"), Path("~/b")) == Path("/a")
      assert construct_path(Path("/a"), Path("b")) == Path("/a")
  
      assert (
          construct_path(Path("~/a"), Path("~/b"))
          == Path("~/a").expanduser()
      )
      assert (
          construct_path(Path("~/a"), Path("/b"))
          == Path("~/a").expanduser()
      )
      assert (
          construct_path(Path("~/a"), Path("b"))
          == Path("~/a").expanduser()
      )
  
      assert construct_path(Path("a"), Path("/b")) == Path("/b/a")
      assert (
          construct_path(Path("a"), Path("~/b"))
          == Path("~/b/a").expanduser()
      )
      assert (
          construct_path(Path("a"), Path("b")) == Path("b/a").resolve()
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_construct_path() without return types