code: def supports_config(config: DSEmbeddingsConfig) -> bool:
      if DtypeEnum(config.residual_dtype) not in [
          DtypeEnum.fp16,
          DtypeEnum.bf16,
          DtypeEnum.fp32,
      ]:
          return False
  
      if config.use_token_type:
          return False
  
      if config.output_normalization is not None:
          return False
  
      try:
          _ = RaggedEmbeddingKernel(
              config.residual_dtype, torch.int32, config.embedding_dim
          )
      except ValueError:
          return False
  
      return True
  
file_path: DeepSpeed/deepspeed/inference/v2/modules/implementations/embedding/ragged_embedding.py
imports: from typing import Any, Dict, Optional
  import torch
  from deepspeed.accelerator import get_accelerator
  from ....allocator import empty_from
  from ....inference_utils import DtypeEnum
  from ....kernels.ragged_ops import RaggedEmbeddingKernel
  from ....ragged import RaggedBatchWrapper
  from ...interfaces import DSEmbeddingBase, DSEmbeddingRegistry
  from ...configs import DSEmbeddingsConfig
label_desc: Use image node_id 2 for calling the DSRaggedEmbedding obj's underlying member method code with example usage: obj.supports_config(config) and returns: True, False, False, False, False