def METHOD_NAME(self, nodes):
    graph_list = []
    for size in self.samples:
        # If you want to sample with faster speed, you can refer to
        # the corresponding geometric API documents for modification.
        neighbors, neighbors_count = paddle.geometric.METHOD_NAME(
            self.row, self.colptr, nodes, sample_size=size)
        edge_src, edge_dst, sample_index = paddle.geometric.reindex_graph(
            nodes, neighbors, neighbors_count)
        subgraph = pgl.Graph(
            num_nodes=sample_index.shape[0],
            edges=paddle.concat(
                [edge_src.reshape([-1, 1]), edge_dst.reshape([-1, 1])],
                axis=-1))
        graph_list.append((subgraph, nodes.shape[0]))
        nodes = sample_index
    return graph_list[::-1], nodes