class_docstr: Test AutoConfig
class_docstr_tok: ["Test","AutoConfig"]
code: def test_Triton(self):
      conf1 = AutoConfig.TritonCPUConfig()
      conf1_res = {
          "server": {
              "device_ids": None,
              "num_instances_per_device": 1,
              "max_batch_size": None,
              "batch_latency_micros": None,
              "triton": {"preferred_batch_size": None},
          }
      }
      self.assertTrue(isinstance(conf1, TowheeConfig))
      self.assertEqual(conf1.config, conf1_res)
  
      conf2 = AutoConfig.TritonCPUConfig(
          num_instances_per_device=2,
          max_batch_size=128,
          batch_latency_micros=100000,
          preferred_batch_size=[8, 16],
      )
      conf2_res = {
          "server": {
              "device_ids": None,
              "num_instances_per_device": 2,
              "max_batch_size": 128,
              "batch_latency_micros": 100000,
              "triton": {"preferred_batch_size": [8, 16]},
          }
      }
      self.assertTrue(isinstance(conf2, TowheeConfig))
      self.assertEqual(conf2.config, conf2_res)
  
      conf3 = AutoConfig.TritonGPUConfig()
      conf3_res = {
          "server": {
              "device_ids": [0],
              "num_instances_per_device": 1,
              "max_batch_size": None,
              "batch_latency_micros": None,
              "triton": {"preferred_batch_size": None},
          }
      }
      self.assertTrue(isinstance(conf3, TowheeConfig))
      self.assertEqual(conf3.config, conf3_res)
  
      conf4 = AutoConfig.TritonGPUConfig(
          device_ids=[0, 1],
          num_instances_per_device=2,
          max_batch_size=128,
          batch_latency_micros=100000,
          preferred_batch_size=[8, 16],
      )
      conf4_res = {
          "server": {
              "device_ids": [0, 1],
              "num_instances_per_device": 2,
              "max_batch_size": 128,
              "batch_latency_micros": 100000,
              "triton": {"preferred_batch_size": [8, 16]},
          }
      }
      self.assertTrue(isinstance(conf4, TowheeConfig))
      self.assertEqual(conf4.config, conf4_res)
  
file_path: towhee/tests/unittests/runtime/test_autos.py
imports: import pathlib
  import unittest
  from towhee import AutoConfig, AutoPipes
  from towhee.runtime.node_config import TowheeConfig
label_desc: Use image node_id 2 for calling the TestAutoConfig obj's underlying member method code with example usage: obj.test_Triton() without return types