def METHOD_NAME(name, gid=None, **kwargs):
    """
    .. versionchanged:: 3006.0
    Add the specified group
    name
        Name of the new group
    gid
        Use GID for the new group
    CLI Example:
    .. code-block:: bash
        salt '*' group.add foo 3456
    """
    kwargs = salt.utils.args.clean_kwargs(**kwargs)
    if salt.utils.data.is_true(kwargs.pop("system", False)):
        log.warning("pw_group module does not support the 'system' argument")
    if "non_unique" in kwargs:
        log.warning("The non_unique parameter is not supported on this platform.")
    if kwargs:
        log.warning("Invalid kwargs passed to group.add")
    cmd = "pw groupadd "
    if gid:
        cmd += "-g {} ".format(gid)
    cmd = "{} -n {}".format(cmd, name)
    ret = __salt__["cmd.run_all"](cmd, python_shell=False)
    return not ret["retcode"]