def num_partitions(self):
        """Return the number of partitions.

        Returns
        -------
        int
            number of partitions
        """
Return the number of partitions.

        Returns
        -------
        int
            number of partitions
        
python/dgl/distributed/graph_partition_book.py