class_docstr: Default CommManager singleton implementation for Comms in the Kernel
class_docstr_tok: ["Default","CommManager","singleton","implementation","for","Comms","in","the","Kernel"]
docstr: Register a new comm
docstr_tok: ["Register","a","new","comm"]
code: def register_comm(self, comm: BaseComm) -> str:
      """Register a new comm"""
      comm_id = comm.comm_id
      self.comms[comm_id] = comm
      return 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 4 for calling the CommManager obj's underlying member method code with example usage: obj.register_comm(comm) and returns: comm_id