code: def encode_image(self, img_word):
      img_embedding = self.visual(img_word)
      return img_embedding[:, 0]
  
file_path: PaddleHub/modules/image/text_to_image/disco_diffusion_ernievil_base/vit_b_16x/ernievil2/transformers/multimodal.py
imports: import numpy
  import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 3 for calling the MultiModalModel obj's underlying member method code with example usage: obj.encode_image(img_word) and returns: img_embedding