class_docstr: Image to Patch Embedding
      
code: def forward(self, x):
      B, C, H, W = x.shape
      assert (
          H == self.img_size[0] and W == self.img_size[1]
      ), f"Input image size ({H}*{W}) doesn't match model ({self.img_size[0]}*{self.img_size[1]})."
  
      x = self.proj(x)
      return x
  
imports: from collections.abc import Callable
  import numpy
  import paddle
  import paddle.nn
  from paddle.nn.initializer import TruncatedNormal, Constant, Normal
  from ppdet.core.workspace import register, serializable
label_desc: Use image node_id 2 for calling the PatchEmbed obj's underlying member method code with example usage: obj.forward(x) and returns: x