code: def get_world_size() -> int:
      """Get total number workers.
  
      Returns
      -------
      n : int
          Total number of process.
      """
      ret = _LIB.XGCommunicatorGetWorldSize()
      return ret
  
imports: import ctypes
  import json
  import logging
  import os
  import pickle
  from enum import IntEnum, unique
  from typing import Any, Dict, List, Optional
  import numpy
  from ._typing import _T
  from .core import _LIB, _check_call, build_info, c_str, from_pystr_to_cstr, py_str
label_desc: Use image node_id 4 for calling a global function with example usage: get_world_size() and returns: ret