def _reset_cached_info(self):
        """Some info like batch_num_nodes may be stale after mutation
        Clean these cached info
        """
        self._batch_num_nodes = None
        self._batch_num_edges = None
Some info like batch_num_nodes may be stale after mutation
        Clean these cached info
        
python/dgl/heterograph.py