code: def _verify_resolved_paths_and_filesystem(scheme: Partitioning):
      assert scheme.base_dir is not None
      assert scheme.normalized_base_dir is not None
      paths, expected_fs = _resolve_paths_and_filesystem(
          scheme.base_dir,
          scheme.filesystem,
      )
      path = paths[0]
      expected_path = (
          f"{path}/" if path and not path.endswith("/") else path
      )
      assert scheme.normalized_base_dir == expected_path
      assert isinstance(scheme.resolved_filesystem, type(expected_fs))
  
imports: import json
  import os
  import posixpath
  from typing import Any, Callable, Dict, Iterator, List, Optional, Union
  import pandas
  import pyarrow
  import pyarrow
  import pytest
  from pyarrow.fs import FileType
  from pytest_lazyfixture import lazy_fixture
  import ray
  from ray.data.block import Block
  from ray.data.dataset import Dataset
  from ray.data.datasource import FileBasedDatasource, PathPartitionParser
  from ray.data.datasource.file_based_datasource import FileExtensionFilter, _resolve_paths_and_filesystem
  from ray.data.datasource.partitioning import Partitioning, PartitionStyle, PathPartitionFilter
  from ray.data.tests.conftest import *
  from ray.tests.conftest import *
label_desc: Use image node_id 4 for calling a global function with example usage: _verify_resolved_paths_and_filesystem(scheme) without return types