def METHOD_NAME():
    import optparse
    parser = optparse.OptionParser()
    parser.add_option(
        "-m",
        "--mode",
        default="exporter",
        type=str,
        help="Specify communication mode (default=%default)",
    )
    parser.add_option(
        "-e",
        "--exporter_address",
        default="172.19.10.119:9001",
        type=str,
        help="Exporter address",
    )
    parser.add_option(
        "-t", "--tangoname", default="i11-ma-cx1/ex/md2", type=str, help="Tango name"
    )
    parser.add_option(
        "-p",
        "--polling_interval",
        default=1000,
        type=float,
        help="Tango polling interval",
    )
    options, args = parser.parse_args()
    template = get_template(mode=options.mode)
    if options.mode == "exporter":
        config_dictionary = {
            "class": "MicrodiffMotor",
            "exporter_address": options.exporter_address,
        }
    elif options.mode == "tango_polling":
        config_dictionary = {
            "class": "MicrodiffMotor",
            "tangoname": options.tangoname,
            "polling_interval": options.polling_interval,
        }
    elif options.mode == "tango_events":
        config_dictionary = {"class": "MicrodiffMotor", "tangoname": options.tangoname}
    if not os.path.isdir(options.mode):
        os.mkdir(options.mode)
    for motor in continuous_motors:
        config_dictionary["actuator_name"] = motor
        config_dictionary["direction"] = continuous_motors[motor]["direction"]
        config_dictionary["GUIstep"] = continuous_motors[motor]["GUIstep"]
        config = template.substitute(config_dictionary)
        f = open("%s/%s.xml" % (options.mode, motor.lower()), "w")
        f.write(config)
        f.close()