code: def test_static_model_auto_naming(self):
      print("-" * 20, "test_static_model_auto_naming", "-" * 20)
      test_flag = True
  
      model_basic = basic_static_model()
      model_basic_1 = basic_static_model()
      assname = "model_%d" % (
          int(model_basic_1.name.split("_")[-1]) + 1
      )
      model_basic_2 = basic_static_model(name=assname)
      model_basic_3 = basic_static_model()
      model_basic_given_name = basic_static_model("a_static_model")
  
      # self.assertEqual(model_basic.name, "model")
      basename = model_basic.name
      bnum = basename.split("_")[-1]
      try:
          bnum = int(bnum)
      except:
          bnum = 0
      self.assertEqual(model_basic_1.name, "model_%d" % (bnum + 1))
      self.assertEqual(model_basic_2.name, assname)
      self.assertEqual(
          model_basic_3.name,
          "model_%d" % (int(assname.split("_")[-1]) + 1),
      )
      self.assertEqual(model_basic_given_name.name, "a_static_model")
  
      try:
          model_basic_given_repeat_name = basic_static_model("model_1")
          test_flag = False
      except Exception as e:
          print(e)
      if not test_flag:
          self.fail("Failed to detect repeat user given names")
  
      model_nested = nested_static_model()
      model_nested_1 = nested_static_model(
          inner_model_name="a_inner_static_model"
      )
  
      # self.assertEqual(model_nested.name, "model_5")
      self.assertEqual(
          model_nested_1.name,
          "model_%d" % (int(model_nested.name.split("_")[-1]) + 1),
      )
  
      try:
          model_nested_given_repeat_name = nested_static_model(
              inner_model_name="a_inner_static_model"
          )
          test_flag = False
      except Exception as e:
          print(e)
      if not test_flag:
          self.fail("Failed to detect repeat user given names")
  
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 4 for calling the Auto_Naming_Test obj's underlying member method code with example usage: obj.test_static_model_auto_naming() without return types