code: def set_weight(self, weight: torch.Tensor) -> None:
      if self.dtype in [torch.quint8, torch.quint4x2]:
          self._packed_weight = (
              torch.ops.quantized.embedding_bag_prepack(weight)
          )
      else:
          raise NotImplementedError(
              "Unsupported dtype for quantized embedding prepack! Supports quint8 and quint4x2."
          )
  
imports: import torch
  import torch.nn
  from torch import Tensor
  from torch._jit_internal import Optional, List
  from .utils import _hide_packed_params_repr
  from .utils import _quantize_weight
label_desc: Use image node_id 2 for calling the EmbeddingPackedParams obj's underlying member method code with example usage: obj.set_weight(weight) without return types