code: def dataset_sharded_with_config_parquet_metadata(
      ds_sharded_fs: AbstractFileSystem,
      ds_sharded_parquet_metadata_dir: StrPath,
  ) -> dict[str, Any]:
      config_parquet_metadata_content = {
          "parquet_files_metadata": [
              {
                  "dataset": "ds_sharded",
                  "config": "default",
                  "split": "train",
                  "url": f"https://fake.huggingface.co/datasets/ds/resolve/refs%2Fconvert%2Fparquet/{parquet_file_path}",  # noqa: E501
                  "filename": os.path.basename(parquet_file_path),
                  "size": ds_sharded_fs.info(parquet_file_path)["size"],
                  "num_rows": pq.read_metadata(
                      ds_sharded_fs.open(parquet_file_path)
                  ).num_rows,
                  "parquet_metadata_subpath": f"ds_sharded/--/{parquet_file_path}",
              }
              for parquet_file_path in ds_sharded_fs.glob(
                  "default/**.parquet"
              )
          ]
      }
      upsert_response(
          kind="config-parquet-metadata",
          dataset="ds_sharded",
          dataset_git_revision=REVISION_NAME,
          config="default",
          content=config_parquet_metadata_content,
          http_status=HTTPStatus.OK,
          progress=1.0,
      )
      return config_parquet_metadata_content
  
imports: import os
  import shutil
  from collections.abc import Generator
  from http import HTTPStatus
  from pathlib import Path
  from typing import Any
  from unittest.mock import patch
  import pyarrow.parquet
  import pytest
  from datasets import Dataset, Image, concatenate_datasets
  from datasets.table import embed_table_storage
  from fsspec import AbstractFileSystem
  from fsspec.implementations.http import HTTPFileSystem
  from libcommon.parquet_utils import Indexer, ParquetIndexWithMetadata, RowsIndex, SchemaMismatchError, TooBigRows, parquet_export_is_partial
  from libcommon.resources import CacheMongoResource
  from libcommon.simple_cache import upsert_response
  from libcommon.storage import StrPath
label_desc: Use image node_id 19 for calling a global function with example usage: dataset_sharded_with_config_parquet_metadata(ds_sharded_fs, ds_sharded_parquet_metadata_dir) and returns: config_parquet_metadata_content