




import pytest

import datasets.config
from datasets.utils.info_utils import is_small_dataset

@pytest.mark.parametrize('dataset_size'     ,     [None, 4_00 * 2**20, 6_00 * 2**20]				)
@pytest.mark.parametrize('input_in_memory_max_size'     ,     ['default', 0, 1_00 * 2**20, 9_00 * 2**20]				)
def    UpperCAmelCase_				( __UpperCAmelCase		:      Dict     ,     __UpperCAmelCase		:      Optional[Any]     ,     __UpperCAmelCase		:      Optional[Any]				)   ->					Dict:
      if input_in_memory_max_size != "default":
            monkeypatch.setattr(datasets.config     ,     'IN_MEMORY_MAX_SIZE'     ,     __UpperCAmelCase				)
      SCREAMING_SNAKE_CASE_      		=     datasets.config.IN_MEMORY_MAX_SIZE
      if input_in_memory_max_size == "default":
            assert in_memory_max_size == 0
      else:
            assert in_memory_max_size == input_in_memory_max_size
      if dataset_size and in_memory_max_size:
            SCREAMING_SNAKE_CASE_      		=     dataset_size < in_memory_max_size
      else:
            SCREAMING_SNAKE_CASE_      		=     False
      SCREAMING_SNAKE_CASE_      		=     is_small_dataset(__UpperCAmelCase				)
      assert result == expected





import warnings

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


lowerCamelCase__					:  Union[str, Any]      							=				logging.get_logger(__name__)





class 			lowerCamelCase_				( _SCREAMING_SNAKE_CASE   ):


 '''simple docstring'''







 def __init__(				self    :						Dict							,							*_lowerCAmelCase    :						Optional[Any]							,							**_lowerCAmelCase    :						Any		):
       warnings.warn(
           'The class LayoutLMv2FeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
           ' Please use LayoutLMv2ImageProcessor instead.'							,							_lowerCAmelCase							,							)
       super().__init__(*_lowerCAmelCase							,							**_lowerCAmelCase		)