def METHOD_NAME(
    self,
    msgid,
    domain=None,
    mapping=None,
    context=None,
    target_language=None,
    default=None,
):
    # Translate method for restricted code like skins.
    if context is not None:
        if not IBrowserRequest.providedBy(context):
            context = aq_get(context, "REQUEST", None)
    return METHOD_NAME(
        msgid,
        domain=domain,
        mapping=mapping,
        context=context,
        target_language=target_language,
        default=default,
    )