code: def test_config_from_weights_invalid(self):
      weights = os.path.join("a", "path", "to", "rrdn-C3-D1-G7-G05-x2")
      arch_params = {
          "C": None,
          "D": None,
          "G": None,
          "G0": None,
          "x": None,
          "T": None,
      }
      name = "rdn"
      try:
          generated_param = utils.get_config_from_weights(
              w_path=weights, arch_params=arch_params, name=name
          )
      except:
          self.assertTrue(True)
      else:
          self.assertFalse(True)
  
imports: import logging
  import os
  import unittest
  import yaml
  from unittest.mock import patch
  from ISR.utils import utils
label_desc: Use image node_id 7 for calling the UtilsClassTest obj's underlying member method code with example usage: obj.test_config_from_weights_invalid() without return types