code: def test_stringify_path():
      test_filepath = os.path.join("path", "to", "file.txt")
  
      # Pathlib.path
      path = pathlib.Path(test_filepath)
      assert stringify_path(path) == test_filepath
  
      # fspath protocol
      class CustomFSPath:
          """For testing fspath on unknown objects"""
  
          def __init__(self, path):
              self.path = path
  
          def __fspath__(self):
              return self.path
  
      path = CustomFSPath(test_filepath)
      assert stringify_path(path) == test_filepath
  
      # Non path-like input is unaffected
      path = (1, 2, 3)
      assert stringify_path(path) is path
  
file_path: dask/dask/bytes/tests/test_bytes_utils.py
imports: from __future__ import annotations
  import io
  import os
  import pathlib
  import pytest
  from fsspec.utils import infer_storage_options, read_block, seek_delimiter, stringify_path
label_desc: Use image node_id 5 for calling a global function with example usage: test_stringify_path() and returns: self