def METHOD_NAME(name, nonvoting=False):
    if not os.path.exists('/etc/confluent/srvcert.pem'):
        make_certificate()
    s = client.Command().connection
    role = 'nonvoting' if nonvoting else None
    tlvdata.send(s, {'collective': {'operation': 'invite', 'name': name, 'role': role}})
    invite = tlvdata.recv(s)['collective']
    if 'error' in invite:
        sys.stderr.write(invite['error'] + '\n')
        return
    print('{0}'.format(invite['invitation']))