def METHOD_NAME(self, param_name, *nodes):
    if hasattr(nodes[0], "__iter__"):
        raise Exception(f"add_{param_name}() takes elements as positional arguments, not list")
    return self._param_add_nodes(param_name, len(nodes), nodes)