class_docstr: Basic tests on the eval_model.py example.
class_docstr_tok: ["Basic","tests","on","the","eval_model.py","example","."]
docstr: Ensure you get an error trying to use eval_model with -dt train.
docstr_tok: ["Ensure","you","get","an","error","trying","to","use","eval_model","with","-dt","train","."]
code: def test_noevalmode(self):
      """
      Ensure you get an error trying to use eval_model with -dt train.
      """
      with self.assertRaises(ValueError):
          testing_utils.eval_model(
              {"task": "integration_tests", "model": "repeat_label"},
              valid_datatype="train",
          )
  
file_path: ParlAI/tests/test_eval_model.py
imports: import os
  from parlai.utils.io import PathManager
  import pytest
  import unittest
  import parlai.utils.testing
  from parlai.scripts.eval_model import get_task_world_logs
label_desc: Use image node_id 1 for calling the TestEvalModel obj's underlying member method code with example usage: obj.test_noevalmode() without return types