


"""simple docstring"""



from unittest.mock import Mock, patch

from file_transfer.send_file import send_file







@patch("socket.socket"					)
@patch("builtins.open"					)
def     __lowerCAmelCase		(		lowercase    :    Tuple		,				lowercase    :    List[Any]					)      ->		Optional[Any]:


    """simple docstring"""





    snake_case       : Optional[Any]    =       Mock()
    snake_case       : Tuple    =       conn, Mock()
    snake_case       : Optional[int]    =       iter([1, None]					)
    snake_case       : Any    =       lambda lowercase					: next(lowercase					)

    # ===== invoke =====
    send_file(filename="mytext.txt"		,				testing=lowercase					)

    # ===== ensurance =====
    sock.assert_called_once()
    sock.return_value.bind.assert_called_once()
    sock.return_value.listen.assert_called_once()
    sock.return_value.accept.assert_called_once()
    conn.recv.assert_called_once()

    file.return_value.__enter__.assert_called_once()
    file.return_value.__enter__.return_value.read.assert_called()

    conn.send.assert_called_once()
    conn.close.assert_called_once()
    sock.return_value.shutdown.assert_called_once()
    sock.return_value.close.assert_called_once()









"""simple docstring"""



import warnings

from ...utils import logging
from .image_processing_segformer import SegformerImageProcessor


__snake_case       =       logging.get_logger(__name__)







class _lowerCAmelCase							( snake_case_      ):







   def __init__(      self		,      *UpperCamelCase__		,      **UpperCamelCase__		)      ->						None:

       '''simple docstring'''




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





