def METHOD_NAME(request):
    mqtt = etree.Element("net.xmeter.samplers.ConnectSampler",
                         guiclass="net.xmeter.gui.ConnectSamplerUI",
                         testclass="net.xmeter.samplers.ConnectSampler",
                         testname=request.label)
    mqtt.append(JMX._string_prop("mqtt.server", request.config.get("addr", "127.0.0.1")))
    mqtt.append(JMX._string_prop("mqtt.port", "1883"))
    mqtt.append(JMX._string_prop("mqtt.version", "3.1"))
    mqtt.append(JMX._string_prop("mqtt.conn_timeout", "10"))
    mqtt.append(JMX._string_prop("mqtt.protocol", "TCP"))
    mqtt.append(JMX._string_prop("mqtt.ws_path", ""))
    mqtt.append(JMX._bool_prop("mqtt.dual_ssl_authentication", False))
    mqtt.append(JMX._string_prop("mqtt.clientcert_file_path", ""))
    mqtt.append(JMX._string_prop("mqtt.clientcert_password", ""))
    mqtt.append(JMX._string_prop("mqtt.client_id_prefix", "conn_"))
    mqtt.append(JMX._bool_prop("mqtt.client_id_suffix", True))
    mqtt.append(JMX._string_prop("mqtt.conn_keep_alive", "300"))
    mqtt.append(JMX._string_prop("mqtt.conn_attampt_max", "0"))
    mqtt.append(JMX._string_prop("mqtt.reconn_attampt_max", "0"))
    mqtt.append(JMX._string_prop("mqtt.conn_clean_session", "true"))
    return mqtt