docstr: Compare opts by loading them with Opt.load().
  
  Will not compare the override field.
docstr_tok: ["Compare","opts","by","loading","them","with","Opt.load","(",")",".","Will","not","compare","the","override","field","."]
code: def test_compare_opts(self):
      """
      Compare opts by loading them with Opt.load().
  
      Will not compare the override field.
      """
  
      with testing_utils.tempdir() as tmpdir:
          # Write test opts
          opt_dir = tmpdir
          opt_path_1 = os.path.join(opt_dir, "1.opt")
          opt_path_2 = os.path.join(opt_dir, "2.opt")
          with open(opt_path_1, "w") as f1:
              json.dump(self.compare_opt_1, f1)
          with open(opt_path_2, "w") as f2:
              json.dump(self.compare_opt_2, f2)
  
          # Compare opts
          output = compare_opts(
              opt_path_1=opt_path_1, opt_path_2=opt_path_2
          )
          desired_output = """
  Args only found in opt 1:
  key2: a
  
  Args only found in opt 2:
  key3: b
  
  Args that are different in both opts:
  key1:
  \tIn opt 1: 0
  \tIn opt 2: 1"""
          self.assertEqual(output, desired_output)
  
imports: import json
  import os
  import unittest
  import parlai.utils.testing
  from parlai.core.agents import create_agent_from_opt_file
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.scripts.compare_opts import compare_opts
label_desc: Use image node_id 3 for calling the TestOpt obj's underlying member method code with example usage: obj.test_compare_opts() without return types