class_docstr: Abstract callable that provides metadata for the files of a single dataset block.
  
  Current subclasses:
      - :class:`BaseFileMetadataProvider`
      - :class:`ParquetMetadataProvider`
code: def __call__(
      self,
      paths: List[str],
      schema: Optional[Union[type, "pyarrow.lib.Schema"]],
      **kwargs,
  ) -> BlockMetadata:
      return self._get_block_metadata(paths, schema, **kwargs)
  
imports: import itertools
  import logging
  import os
  import pathlib
  import re
  from typing import TYPE_CHECKING, Any, Callable, Iterator, List, Optional, Tuple, TypeVar, Union
  import numpy
  from ray.data._internal.progress_bar import ProgressBar
  from ray.data._internal.remote_fn import cached_remote_fn
  from ray.data.block import BlockMetadata
  from ray.data.datasource.partitioning import Partitioning
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 2 for calling the FileMetadataProvider obj's underlying member method code with example usage: obj.__call__(paths, schema) and returns: self