def METHOD_NAME(self, nodes):
    """
    Set the backdrop size to fit around specified nodes.
    Args:
        nodes (list[NodeGraphQt.NodeObject]): list of nodes.
    """
    if not nodes:
        return
    self.graph.begin_undo('"{}" wrap nodes'.format(self.name()))
    size = self.view.calc_backdrop_size([n.view for n in nodes])
    self.set_property('width', size['width'])
    self.set_property('height', size['height'])
    self.set_pos(*size['pos'])
    self.graph.end_undo()