





import warnings

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


UpperCamelCase__      =logging.get_logger(__name__)





class 			lowerCAmelCase__( __lowercase    ):






       '''simple docstring'''


       def __init__(      self    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     None:
            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							)






def     lowerCamelCase__			(__lowerCamelCase,       __lowerCamelCase	):
     if a < 0 or b < 0:
          raise ValueError("the value of both inputs must be positive"	)
     _SCREAMING_SNAKE_CASE       :	Optional[Any]						    =							str(bin(__lowerCamelCase	)	)[2:]  # remove the leading "0b"
     _SCREAMING_SNAKE_CASE       :	List[str]						    =							str(bin(__lowerCamelCase	)	)[2:]
     _SCREAMING_SNAKE_CASE       :	Optional[Any]						    =							max(len(__lowerCamelCase	),       len(__lowerCamelCase	)	)
     return "0b" + "".join(
         str(int("1" in (char_a, char_b)	)	)
         for char_a, char_b in zip(a_binary.zfill(__lowerCamelCase	),       b_binary.zfill(__lowerCamelCase	)	)	)


if __name__ == "__main__":
       import doctest

       doctest.testmod()