class_docstr: Basic tests on the built-in parlai Dictionary.
class_docstr_tok: ["Basic","tests","on","the","built-in","parlai","Dictionary","."]
docstr: Check that moving a model without moving the dictfile raises an error.
code: def test_set_model_file_without_dict_file(self):
      """
      Check that moving a model without moving the dictfile raises an error.
      """
      # Download model, move to a new location
      with testing_utils.tempdir() as datapath:
          try:
              # remove unittest models if there before
              shutil.rmtree(os.path.join(datapath, "models/unittest"))
          except FileNotFoundError:
              pass
  
          zoo_path = "zoo:unittest/seq2seq/model"
          model_path = modelzoo_path(datapath, zoo_path)
          PathManager.rm(model_path + ".dict")
          # Test that eval model fails
          with self.assertRaises(RuntimeError):
              testing_utils.eval_model(
                  dict(task="babi:task1k:1", model_file=model_path)
              )
          try:
              # remove unittest models if there after
              shutil.rmtree(os.path.join(datapath, "models/unittest"))
          except FileNotFoundError:
              pass
  
imports: from parlai.core.build_data import modelzoo_path
  from parlai.core.dict import find_ngrams
  from parlai.core.params import ParlaiParser
  from parlai.core.dict import DictionaryAgent, TokenizationMode
  from parlai.core.opt import Opt
  import parlai.scripts.build_dict
  from parlai.utils.io import PathManager
  import parlai.utils.testing
  import os
  import shutil
  import unittest
  import pytest
label_desc: Use image node_id 6 for calling the TestDictionary obj's underlying member method code with example usage: obj.test_set_model_file_without_dict_file() without return types