code: def _compare_model_train_mode(self, model_1, model_2):
      for name_1, module_1 in model_1.named_modules():
          found = False
          for name_2, module_2 in model_2.named_modules():
              if name_1 == name_2:
                  found = True
                  if module_1.training != module_2.training:
                      return False
          if not found:
              return False
      return True
  
imports: import copy
  import shutil
  import tempfile
  import unittest
  import unittest.mock
  from pathlib import Path
  import classy_vision.generic.util
  import torch
  import torch.nn
  from classy_vision.generic.util import CHECKPOINT_FILE, get_torch_version, load_checkpoint, save_checkpoint, split_batchnorm_params, Timer, update_classy_model, update_classy_state
  from classy_vision.models import build_model
  from classy_vision.tasks import build_task
  from classy_vision.trainer import LocalTrainer
  from test.generic.config_utils import get_fast_test_task_config, get_test_model_configs
  from test.generic.utils import compare_model_state, compare_states
label_desc: Use image node_id 6 for calling the TestUtilMethods obj's underlying member method code with example usage: obj._compare_model_train_mode(model_1, model_2) and returns: True, False, False