code: def _compute_split_statistics(
      *,
      split_files: _SplitFilesDict,
      filename_template: naming.ShardedFileTemplate,
  ) -> Sequence[split_lib.SplitInfo]:
      """Computes and returns the split statistics."""
  
      adapter = None
      for _, file_infos in split_files.items():
          _assert_split_is_consistent(file_infos)
          if adapter is None:
              (file_suffix,) = {f.filetype_suffix for f in file_infos}
              file_format = file_adapters.file_format_from_suffix(
                  file_suffix
              )
              adapter = file_adapters.ADAPTER_FOR_FORMAT[file_format]
  
      # Compute all shard info in parallel
      split_to_shard_infos = cast(
          Mapping[str, Sequence[_ShardInfo]],
          utils.tree.parallel_map(
              functools.partial(
                  _process_shard,
                  data_dir=filename_template.data_dir,
                  adapter=adapter,
              ),
              split_files,
              report_progress=True,
          ),
      )
      # Create the SplitInfo for all splits
      return [
          _merge_shard_info(
              shard_infos=si, filename_template=filename_template
          )
          for si in split_to_shard_infos.values()
      ]
  
imports: import collections
  from collections.abc import Mapping, Sequence, Set
  import dataclasses
  import functools
  import itertools
  import os
  import pprint
  from typing import Optional, Type, Union, cast
  from etils import epath
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import lazy_imports_lib
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.proto import dataset_info_pb2
  from tensorflow_datasets.core.utils.lazy_imports_utils import apache_beam
  from tensorflow_datasets.core.utils.lazy_imports_utils import array_record_data_source
  from google.protobuf import json_format
label_desc: Use image node_id 6 for calling a global function with example usage: _compute_split_statistics() and returns: unknown