code: def test__stringify_path():
      res = _stringify_path("fname.ext.gz")
      assert res == "fname.ext.gz"
      res = _stringify_path(pathlib.Path("fname.ext.gz"))
      assert res == "fname.ext.gz"
  
      home = pathlib.Path.home().as_posix()
      res = _stringify_path(pathlib.Path("~/fname.ext.gz"))
      assert res == f"{home}/fname.ext.gz"
  
      res = _stringify_path(pathlib.Path("./fname.ext.gz"))
      assert res == "fname.ext.gz"
      res = _stringify_path(pathlib.Path("../fname.ext.gz"))
      assert res == "../fname.ext.gz"
  
imports: import pathlib
  import pytest
  from ..filename_parser import TypesFilenamesError, _stringify_path, parse_filename, splitext_addext, types_filenames
label_desc: Use image node_id 4 for calling a global function with example usage: test__stringify_path() without return types