


def  __snake_case       (   UpperCamelCase__	)      ->		list:







		"""simple docstring"""





		A					       = len(UpperCamelCase__	)
		for i in range(1 ,			UpperCamelCase__	):
				A					       = collection[i]
				A					       = 0
				A					       = i - 1

				while low <= high:
						A					       = (low + high) // 2
						if val < collection[mid]:
								A					       = mid - 1
						else:
								A					       = mid + 1
				for j in range(UpperCamelCase__ ,			UpperCamelCase__ ,			-1	):
						A					       = collection[j - 1]
				A					       = val
		return collection


if __name__ == "__main__":
	UpperCamelCase						:				Union[str, Any]             =      input("Enter numbers separated by a comma:\n").strip()
	UpperCamelCase						:				Optional[Any]             =      [int(item) for item in user_input.split(",")]
	print(binary_insertion_sort(unsorted))









"""simple docstring"""


from unittest.mock import Mock, patch

from file_transfer.send_file import send_file







@patch('socket.socket'	)
@patch('builtins.open'	)
def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__	)      ->		Dict:







		"""simple docstring"""





		A					       = Mock()
		A					       = conn, Mock()
		A					       = iter([1, None]	)
		A					       = lambda UpperCamelCase__	: next(UpperCamelCase__	)

		# ===== invoke =====
		send_file(filename='mytext.txt' ,			testing=UpperCamelCase__	)

		# ===== 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()





