class_docstr: Subclass of TorchAgent that allows for encoding image features.
  
  Provides flags and utility methods.
class_docstr_tok: ["Subclass","of","TorchAgent","that","allows","for","encoding","image","features",".","Provides","flags","and","utility","methods","."]
docstr: Override to handle image features.
docstr_tok: ["Override","to","handle","image","features","."]
code: def batchify(
      self, obs_batch: List[Message], sort: bool = False
  ) -> Batch:
      """
      Override to handle image features.
      """
      batch = super().batchify(obs_batch, sort)
      batch = self.batchify_image_features(batch)
      return batch
  
file_path: ParlAI/parlai/core/torch_image_agent.py
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from abc import abstractmethod
  from typing import List
  import torch
  from parlai.core.message import Message
  from parlai.core.torch_agent import Batch, TorchAgent
label_desc: Use image node_id 3 for calling the TorchImageAgent obj's underlying member method code with example usage: obj.batchify(obs_batch, sort) and returns: batch