code: def upgrade_opt(cls, opt):
      opt = super(_ExampleUpgradeOptAgent, cls).upgrade_opt(opt)
      assert "is_upgraded" not in opt
      opt["is_upgraded"] = True
      return opt
  
imports: import os
  import json
  import unittest
  from parlai.core.params import ParlaiParser
  import parlai.core.agents
  import parlai.utils.testing
label_desc: Use image node_id 2 for calling the _ExampleUpgradeOptAgent obj's underlying member method code with example usage: obj.upgrade_opt(cls, opt) and returns: opt