def METHOD_NAME(config):
    result = consts.TEST_PASSED
    cause = None
    Cgroup.set_and_validate(config, SYSTEMD_CGNAME, 'cpu.weight', '200')
    Cgroup.set_and_validate(config, OTHER_CGNAME, 'cpu.weight', '300', ignore_systemd=True)
    try:
        Cgroup.set(config, SYSTEMD_CGNAME, 'cpu.weight', '400', ignore_systemd=True)
    except RunError as re:
        if 'requested group parameter does not exist' not in re.stderr:
            raise re
    else:
        result = consts.TEST_FAILED
        cause = 'Setting cpu.weight on {} erroneously succeeded'.format(SYSTEMD_CGNAME)
    try:
        Cgroup.set(config, OTHER_CGNAME, 'cpu.weight', '500')
    except RunError as re:
        if 'requested group parameter does not exist' not in re.stderr:
            raise re
    else:
        result = consts.TEST_FAILED
        tmp_cause = 'Setting cpu.weight on {} erroneously succeeded'.format(OTHER_CGNAME)
        cause = '\n'.join(filter(None, [cause, tmp_cause]))
    return result, cause