class_docstr: Extension of Transresnet to incorporate dialogue history and multimodality.
docstr: Encode image features.
  
  :param image_features:
      list of image features
  
  :return:
      encoded representation of the image features
docstr_tok: ["Encode","image","features",".",":","param","image_features",":","list","of","image","features",":","return",":","encoded","representation","of","the","image","features"]
code: def forward_image(self, image_features):
      """
      Encode image features.
  
      :param image_features:
          list of image features
  
      :return:
          encoded representation of the image features
      """
      img_encoded = None
      if image_features is None or not self.encode_image:
          if self.multimodal and self.multimodal_combo == "concat":
              img_encoded = self.blank_encoding
      else:
          img_encoded = super().forward_image(image_features)
  
      return img_encoded
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import torch
  from torch import nn
  from parlai.utils.io import PathManager
  from parlai.agents.transformer.modules import TransformerEncoder, create_position_codes, TransformerEncoderLayer
  from projects.personality_captions.transresnet.modules import TransresnetModel, load_fasttext_embeddings
label_desc: Use image node_id 8 for calling the TransresnetMultimodalModel obj's underlying member method code with example usage: obj.forward_image(image_features) and returns: img_encoded