code: def test_weights_naming(self):
      w_names = {
          "generator": Path(
              "tests/temporary_test_data/weights/rrdn-C2-D3-G20-G020-T2-x2/0000/rrdn-C2-D3-G20-G020-T2-x2{metric}_epoch{epoch:03d}.hdf5"
          ),
          "discriminator": Path(
              "tests/temporary_test_data/weights/rrdn-C2-D3-G20-G020-T2-x2/0000/srgan-large{metric}_epoch{epoch:03d}.hdf5"
          ),
      }
      cb_paths = self.TH._make_callback_paths()
      generated_names = self.TH._weights_name(cb_paths)
      assert (
          w_names["generator"] == generated_names["generator"]
      ), "Generated names: {}, expected: {}".format(
          generated_names["generator"], w_names["generator"]
      )
      assert (
          w_names["discriminator"] == generated_names["discriminator"]
      ), "Generated names: {}, expected: {}".format(
          generated_names["discriminator"], w_names["discriminator"]
      )
  
imports: import unittest
  import shutil
  import yaml
  from pathlib import Path
  from unittest.mock import patch
  from ISR.utils.train_helper import TrainerHelper
  from ISR.models.rrdn import RRDN
  from ISR.models.discriminator import Discriminator
  from ISR.models.cut_vgg19 import Cut_VGG19
label_desc: Use image node_id 9 for calling the UtilsClassTest obj's underlying member method code with example usage: obj.test_weights_naming() without return types