def METHOD_NAME(self, request, backend):
    serializer_class = self.backends_serializer.get(backend)
    if serializer_class is None:
        raise JMSException(_('Invalid SMS platform'))
    serializer = serializer_class(data=request.data)
    serializer.is_valid(raise_exception=True)
    test_phone = serializer.validated_data.get('SMS_TEST_PHONE')
    if not test_phone:
        raise JMSException(code='test_phone_required', detail=_('test_phone is required'))
    init_params, send_sms_params = self.get_params_by_backend(backend, serializer.validated_data)
    m = importlib.import_module(f'common.sdk.sms.{backend}', __package__)
    try:
        client = m.client(**init_params)
        client.send_sms(
            phone_numbers=[test_phone],
            **send_sms_params
        )
        status_code = status.HTTP_200_OK
        data = {'msg': _('Test success')}
    except APIException as e:
        try:
            error = e.detail['errmsg']
        except:
            error = e.detail
        status_code = status.HTTP_400_BAD_REQUEST
        data = {'error': error}
    except Exception as e:
        status_code = status.HTTP_400_BAD_REQUEST
        data = {'error': str(e)}
    return Response(status=status_code, data=data)