code: def test_parquet_write_block_path_provider(
      ray_start_regular_shared,
      fs,
      data_path,
      endpoint_url,
      mock_block_write_path_provider,
  ):
      if endpoint_url is None:
          storage_options = {}
      else:
          storage_options = dict(
              client_kwargs=dict(endpoint_url=endpoint_url)
          )
  
      df1 = pd.DataFrame({"one": [1, 2, 3], "two": ["a", "b", "c"]})
      df2 = pd.DataFrame({"one": [4, 5, 6], "two": ["e", "f", "g"]})
      df = pd.concat([df1, df2])
      ds = ray.data.from_pandas([df1, df2])
      path = os.path.join(data_path, "test_parquet_dir")
      if fs is None:
          os.mkdir(path)
      else:
          fs.create_dir(_unwrap_protocol(path))
      ds._set_uuid("data")
  
      ds.write_parquet(
          path,
          filesystem=fs,
          block_path_provider=mock_block_write_path_provider,
      )
      path1 = os.path.join(path, "000000_000000_data.test.parquet")
      path2 = os.path.join(path, "000001_000000_data.test.parquet")
      dfds = pd.concat(
          [
              pd.read_parquet(path1, storage_options=storage_options),
              pd.read_parquet(path2, storage_options=storage_options),
          ]
      )
      assert df.equals(dfds)
      if fs is None:
          shutil.rmtree(path)
      else:
          fs.delete_dir(_unwrap_protocol(path))
  
imports: import os
  import shutil
  from typing import Any
  import numpy
  import pandas
  import pyarrow
  import pyarrow.parquet
  import pytest
  from pytest_lazyfixture import lazy_fixture
  import ray
  from ray.data.block import BlockAccessor
  from ray.data.context import DataContext
  from ray.data.datasource import DefaultFileMetadataProvider, DefaultParquetMetadataProvider
  from ray.data.datasource.parquet_base_datasource import ParquetBaseDatasource
  from ray.data.datasource.parquet_datasource import NUM_CPUS_FOR_META_FETCH_TASK, PARALLELIZE_META_FETCH_THRESHOLD, RETRY_EXCEPTIONS_FOR_META_FETCH_TASK, ParquetDatasource, _deserialize_fragments_with_retry, _SerializedFragment
  from ray.data.datasource.path_util import _unwrap_protocol
  from ray.data.tests.conftest import *
  from ray.data.tests.mock_http_server import *
  from ray.tests.conftest import *
label_desc: Use image node_id 20 for calling a global function with example usage: test_parquet_write_block_path_provider(ray_start_regular_shared, fs, data_path, endpoint_url, mock_block_write_path_provider) without return types