code: def test_vsi_path_error():
      """Raise ValuError if argument is not a path"""
      with pytest.raises(ValueError):
          _vsi_path("foo")
  
imports: import sys
  import pytest
  import rasterio
  from rasterio.errors import PathError
  from rasterio._path import _parse_path, _vsi_path, _ParsedPath, _UnparsedPath
label_desc: Use image node_id 24 for calling a global function with example usage: test_vsi_path_error() without return types