def METHOD_NAME(
    module: torch.nn.Module, dtype: torch.dtype
) -> torch.nn.Module:
    qconfig = quant.QConfigDynamic(
        activation=quant.PlaceholderObserver,
        weight=quant.PlaceholderObserver.with_args(dtype=dtype),
    )
    return quant.quantize_dynamic(
        module,
        qconfig_spec={
            BatchedFusedEmbeddingBag: qconfig,
            BatchedDenseEmbeddingBag: qconfig,
            BatchedDenseEmbedding: qconfig,
            BatchedFusedEmbedding: qconfig,
        },
        mapping={
            BatchedFusedEmbeddingBag: QuantBatchedEmbeddingBag,
            BatchedDenseEmbeddingBag: QuantBatchedEmbeddingBag,
            BatchedDenseEmbedding: QuantBatchedEmbedding,
            BatchedFusedEmbedding: QuantBatchedEmbedding,
        },
        inplace=False,
    )