def METHOD_NAME(cls, ref_qlinear):
    """ Create a (fbgemm/qnnpack) dynamic quantized module from a reference quantized
    module
    Args:
        ref_qlinear (Module): a reference quantized  module, either produced by
        torch.ao.quantization functions or provided by the user
    """
    qlinear = cls(ref_qlinear.in_features, ref_qlinear.out_features, dtype=ref_qlinear.weight_dtype)
    qweight = ref_qlinear.get_quantized_weight()
    bias = ref_qlinear.bias
    qlinear.set_weight_bias(qweight, bias)
    return qlinear