def METHOD_NAME(instr):
    """
    Encode a string as base64 using the "modern" Python interface.
    Among other possible differences, the "modern" encoder does not include
    newline ('\\n') characters in the encoded output.
    .. versionadded:: 2016.3.0
    CLI Example:
    .. code-block:: bash
        salt '*' hashutil.base64_b64encode 'get salted'
    """
    return salt.utils.hashutils.METHOD_NAME(instr)