class_docstr: Communication profiler. Records all communication events.
code: def wait_async_op(self):
      if self.pending_op is not None:
          op = self.pending_op
          op.wait()
          self.close_profiler()
  
imports: import inspect
  from functools import partial
  from pathlib import Path
  from typing import List, Optional
  import torch
  import torch.distributed
  from torch.autograd.profiler import profile
  from torch.distributed import ReduceOp
  from colossalai.utils import get_current_device
  from .prof_utils import BaseProfiler, _format_bandwidth, _format_memory, _format_time
label_desc: Use image node_id 12 for calling the CommProfiler obj's underlying member method code with example usage: obj.wait_async_op() without return types