class_docstr: Basic tests on the util functions in TorchAgent.
class_docstr_tok: ["Basic","tests","on","the","util","functions","in","TorchAgent","."]
docstr: Just make sure we can instantiate a mock agent.
docstr_tok: ["Just","make","sure","we","can","instantiate","a","mock","agent","."]
code: def test_mock(self):
      """
      Just make sure we can instantiate a mock agent.
      """
      agent = get_agent()
      self.assertTrue(isinstance(agent.dict, MockDict))
  
imports: import os
  import unittest
  from parlai.core.agents import create_agent_from_shared
  from parlai.utils.testing import tempdir
  from parlai.utils.misc import Message
label_desc: Use image node_id 1 for calling the TestTorchAgent obj's underlying member method code with example usage: obj.test_mock() without return types