code: def get_generic_metadata_provider(
      file_extensions: Optional[List[str]],
  ):
      # Used by all other file-based `read_*` APIs
      return DefaultFileMetadataProvider()
  
imports: from typing import List, Optional
  from ray.data.datasource import DefaultFileMetadataProvider, DefaultParquetMetadataProvider, FastFileMetadataProvider
  from ray.data.datasource.image_datasource import _ImageFileMetadataProvider
label_desc: Use image node_id 1 for calling a global function with example usage: get_generic_metadata_provider(file_extensions) and returns: DefaultFileMetadataProvider