def      __SCREAMING_SNAKE_CASE  ( __UpperCamelCase   :	List[Any]     )							-> float:







  """simple docstring"""





  SCREAMING_SNAKE_CASE__      							=				0
  while len(__UpperCamelCase     ) > 1:
    SCREAMING_SNAKE_CASE__      							=				0
    # Consider two files with minimum cost to be merged
    for _ in range(2     ):
      SCREAMING_SNAKE_CASE__      							=				files.index(min(__UpperCamelCase     )     )
      temp += files[min_index]
      files.pop(__UpperCamelCase     )
    files.append(__UpperCamelCase     )
    optimal_merge_cost += temp
  return optimal_merge_cost


if __name__ == "__main__":
   import doctest

   doctest.testmod()







import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


__lowerCamelCase      :			str							       =		logging.get_logger(__name__)







class __snake_case    (						lowerCamelCase_		):




   def __init__(   self      :    List[str]	,     *_lowercase      :    Union[str, Any]	,     **_lowercase      :    Union[str, Any]				):



     """simple docstring"""






     warnings.warn(
         """The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
         """ use DonutImageProcessor instead."""	,     _lowercase	,     )
     super().__init__(*_lowercase	,     **_lowercase				)
