code: def test_exception(self):
      M1 = basic_dynamic_model()
      try:
          M1.save("dynamic.hdf5", save_weights=False)
      except Exception as e:
          self.assertIsInstance(e, RuntimeError)
          print(e)
  
      M2 = basic_static_model()
      M2.save("basic_static_mode.hdf5", save_weights=False)
      try:
          M3 = Model.load("basic_static_mode.hdf5")
      except Exception as e:
          self.assertIsInstance(e, RuntimeError)
          print(e)
  
imports: import os
  import unittest
  import numpy
  import tensorflow
  import tensorlayer
  from tensorlayer.layers import *
  from tensorlayer.models import *
  from tests.utils import CustomTestCase
label_desc: Use image node_id 2 for calling the Exception_test obj's underlying member method code with example usage: obj.test_exception() without return types