class_docstr: Default CommManager singleton implementation for Comms in the Kernel
class_docstr_tok: ["Default","CommManager","singleton","implementation","for","Comms","in","the","Kernel"]
docstr: Unregister a comm, and close its counterpart
docstr_tok: ["Unregister","a","comm",",","and","close","its","counterpart"]
code: def unregister_comm(self, comm: BaseComm) -> None:
      """Unregister a comm, and close its counterpart"""
      # unlike get_comm, this should raise a KeyError
      comm = self.comms.pop(comm.comm_id)
  
imports: from __future__ import annotations
  import contextlib
  import logging
  import typing
  import uuid
  from traitlets.utils.importstring import import_item
  import comm
label_desc: Use image node_id 5 for calling the CommManager obj's underlying member method code with example usage: obj.unregister_comm(comm) without return types