code: def comm_type_to_sparse_type(comm_type: CommType) -> SparseType:
      return {
          CommType.FP32: SparseType.FP32,
          CommType.FP16: SparseType.FP16,
          CommType.BF16: SparseType.BF16,
          CommType.FP8: SparseType.FP8,
          CommType.INT8: SparseType.INT8,
      }[comm_type]
  
file_path: torchrec/torchrec/distributed/fbgemm_qcomm_codec.py
imports: import copy
  import logging
  from dataclasses import dataclass
  from enum import Enum, unique
  from typing import cast, Dict, List, Optional
  import torch
  from fbgemm_gpu.quantize_comm import QuantizationContext, QuantizedCommCodec
  from fbgemm_gpu.split_embedding_configs import SparseType
  from torchrec.distributed.types import CommOp, QuantizedCommCodec, QuantizedCommCodecs
label_desc: Use image node_id 1 for calling a global function with example usage: comm_type_to_sparse_type(comm_type) and returns: dict