def _detach_group_id(self, name):
        """Detach group ID if needed

        Returns
        -------
        str
            original name without group ID
        """
        if not self._attach:
            return name
        suffix = "_{}".format(get_group_id())
        return name[: -len(suffix)]
Detach group ID if needed

        Returns
        -------
        str
            original name without group ID
        
python/dgl/distributed/dist_tensor.py