docstr: Save on shutdown if ``save_path`` is set.
code: def shutdown(self):
      """
      Save on shutdown if ``save_path`` is set.
      """
      if hasattr(self, "save_path"):
          self.save(self.save_path)
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import json
  import os
  import re
  import numpy
  from collections import Counter
  from parlai.core.agents import Agent
  from parlai.utils.io import PathManager
  from collections import defaultdict
  from parlai.core.teachers import FixedDialogTeacher
  from parlai.core.image_featurizers import ImageLoader
  from .build import build
  from parlai.tasks.coco_caption.build_2014 import buildImage
  from parlai.tasks.coco_caption.build_2015 import buildImage
label_desc: Use image node_id 14 for calling the VqaDictionaryAgent obj's underlying member method code with example usage: obj.shutdown() without return types