






import pytest

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

@pytest.mark.parametrize('dataset_size'     ,   [None, 4_0_0 * 2**2_0, 6_0_0 * 2**2_0]  )
@pytest.mark.parametrize('input_in_memory_max_size'     ,   ['default', 0, 1_0_0 * 2**2_0, 9_0_0 * 2**2_0]  )
def   snake_case (UpperCAmelCase__     ,   UpperCAmelCase__     ,   UpperCAmelCase__  )	->    int:
 if input_in_memory_max_size != "default":
  monkeypatch.setattr(datasets.config     ,   'IN_MEMORY_MAX_SIZE'     ,   UpperCAmelCase__  )
 UpperCamelCase_: Tuple   				=    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:
  UpperCamelCase_: Dict   				=    dataset_size < in_memory_max_size
 else:
  UpperCamelCase_: str   				=    False
 UpperCamelCase_: List[Any]   				=    is_small_dataset(UpperCAmelCase__  )
 assert result == expected







from abc import ABC, abstractmethod
from argparse import ArgumentParser




class     _lowerCAmelCase(	UpperCAmelCase_ ):





       """simple docstring"""







       @staticmethod
       @abstractmethod
       def       _a   ( _lowerCamelCase							):
         raise NotImplementedError()





       @abstractmethod
       def       _a   ( self							):
         raise NotImplementedError()