code: def test_vsi_path_zip_plus_https():
      """A zip+https:// URLs vsi path is correct (see #1151)"""
      url = "zip+https://example.com/foo.zip!bar.tif"
      assert (
          _vsi_path(_parse_path(url))
          == "/vsizip/vsicurl/https://example.com/foo.zip/bar.tif"
      )
  
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 31 for calling a global function with example usage: test_vsi_path_zip_plus_https() without return types