def METHOD_NAME(self, logger: AirbyteLogger, config: Mapping[str, Any]) -> Tuple[bool, AirbyteConnectionStatus]:
    try:
        conn = self._get_connection(config)
        conn._connect()
        conn.close()
        return (True, AirbyteConnectionStatus(status=Status.SUCCEEDED))
    except Exception as ex:
        logger.error(
            f"Failed to connect to FTP server: {ex}",
        )
        return (False, AirbyteConnectionStatus(status=Status.FAILED, message=f"An exception occurred: {str(ex)}"))