

import warnings

from ...utils import logging
from .image_processing_layoutlmva import LayoutLMvaImageProcessor


a_      =     logging.get_logger(__name__)






class _UpperCamelCase				(				__A ):
			'''simple docstring'''







			def __init__(      self				:			List[str]   ,   *a				:			Optional[int]   ,   **a				:			Dict						)				->							None:

				"""simple docstring"""

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

def 		UpperCamelCase						(   lowercase_ )		->						float:


  '''simple docstring'''






  if not nums:  # Makes sure that the list is not empty
    raise ValueError("""List is empty""" )

  lowercase__	: int     		=   sum(lowercase_ ) / len(lowercase_ )  # Calculate the average
  return sum(abs(x - average ) for x in nums ) / len(lowercase_ )


if __name__ == "__main__":
     import doctest

     doctest.testmod()






