code: def assertModulesEqual(self, mod1, mod2, message=None):
      for p1, p2 in itertools.zip_longest(
          mod1.parameters(), mod2.parameters()
      ):
          self.assertTrue(p1.equal(p2), message)
  
imports: import itertools
  import tempfile
  import unittest
  import torch
  from pytext.common.constants import Stage
  from pytext.config import LATEST_VERSION, PyTextConfig
  from pytext.config.component import create_optimizer, create_scheduler
  from pytext.data import Data
  from pytext.data.sources.tsv import BlockShardedTSVDataSource, TSVDataSource
  from pytext.optimizer import Adam
  from pytext.optimizer.scheduler import Scheduler
  from pytext.task import create_task
  from pytext.task.serialize import get_latest_checkpoint_path, load, save
  from pytext.task.tasks import DocumentClassificationTask
  from pytext.trainers.training_state import TrainingState
  from pytext.utils import test
label_desc: Use image node_id 1 for calling the TaskLoadSaveTest obj's underlying member method code with example usage: obj.assertModulesEqual(mod1, mod2, message) without return types