def METHOD_NAME(**kwargs):
    """
    Parameters
    ----------
    kwargs : dict[str, Any]
        One of the supported :ref:`multidoc.template.__languages__` must be set
        to true in the **kwargs in order to facilitate successful docstring
        deduction.
    Returns
    -------
    """
    _globals = kwargs.pop("globals", {})
    _globals.update(_BASE_GLOBALS)
    _lstrip_blocks = kwargs.pop("lstrip_blocks", True)
    _trim_blocks = kwargs.pop("trim_blocks", True)
    # iterate through supported languages, set as False if not in kwargs.
    # highly unnecessary here?
    _locals = {}
    for j in __languages__:
        _locals[j] = kwargs.pop(j, False)
    # which language is True
    aux = list(map(lambda x: x is True, [_locals[i] for i in __languages__]))
    # ensure only one language detected (e.g. cpp / py)
    assert aux.count(True) == 1
    # finally deduce lang.
    # TODO: There must be a more straightforward way.
    lang = __languages__[aux.index(True)]
    # open language template and return.
    with open(TEMPLATE_LANGUAGE_MAP[lang]) as f:
        t = Template(
            f.read(),
            lstrip_blocks=_lstrip_blocks,
            trim_blocks=_trim_blocks)
        # update globals dict if globals given through kwargs
        t.globals.update(_globals)
        # if _globals else None (currently redundant)
        return t