code: def _get_comm_manager() -> CommManager:
      """Get the current Comm manager, creates one if there is none.
  
      This method is intended to be replaced if needed (if you want to manage multiple CommManagers).
      """
      global _comm_manager  # noqa: PLW0603
  
      if _comm_manager is None:
          _comm_manager = CommManager()
  
      return _comm_manager
  
file_path: catboost/contrib/python/comm/comm/__init__.py
imports: from __future__ import annotations
  from typing import Any
  from .base_comm import BaseComm, BuffersType, CommManager, MaybeDict
label_desc: Use image node_id 2 for calling a global function with example usage: _get_comm_manager() and returns: _comm_manager