code: def runtime_apply_pass(gm: torch.fx.GraphModule):
      """
      The method manages all the passes acting on the distributed training runtime.
      """
      gm = _shape_consistency_apply(gm)
      gm = _comm_spec_apply(gm)
  
      return gm
  
file_path: colossalai/colossalai/auto_parallel/passes/runtime_apply_pass.py
imports: from typing import Dict, List
  import torch
  from torch.fx.node import Node
  from colossalai._analyzer.fx.node_util import MetaInfo
  from colossalai.auto_parallel.tensor_shard.sharding_strategy import CommType, OperationDataType
  from colossalai.tensor.comm_spec import CommSpec
  from colossalai.tensor.shape_consistency import ShapeConsistencyManager
  from colossalai.tensor.sharding_spec import ShardingSpec
label_desc: Use image node_id 8 for calling a global function with example usage: runtime_apply_pass(gm) and returns: gm