def METHOD_NAME(self, command_data):
    parameters = command_data["parameters"]
    file_index = int(parameters["index"])
    if file_index == 0:
        parameter_file_name = "parameter.cfg"
    else:
        parameter_file_name = "parameter_{}.cfg".format(file_index)
    parameter_file_name = os.path.join(self.working_dir, parameter_file_name)
    with open(parameter_file_name, "w") as parameter_file:
        nni_log(LogType.Info, '%s: saving parameter %s' % (self.name, parameters["value"]))
        parameter_file.write(parameters["value"])