class_docstr: Test PersonalityCaptions teacher for ensuring pretrained model does not break.
class_docstr_tok: ["Test","PersonalityCaptions","teacher","for","ensuring","pretrained","model","does","not","break","."]
code: def _setup_data(self, data_path, personalities_data_path):
      super()._setup_data(data_path, personalities_data_path)
      from parlai.zoo.personality_captions.transresnet import download
  
      download(self.opt["datapath"])
      image_features_path = os.path.join(
          self.opt["datapath"],
          "models/personality_captions/transresnet/test_image_feats",
      )
      import torch
  
      with PathManager.open(image_features_path, "rb") as f:
          self.image_features = torch.load(f)
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.teachers import FixedDialogTeacher
  from parlai.core.image_featurizers import ImageLoader
  from parlai.utils.io import PathManager
  from .build import build
  import json
  import os
label_desc: Use image node_id 1 for calling the PersonalityCaptionsTestTeacher obj's underlying member method code with example usage: obj._setup_data(data_path, personalities_data_path) without return types