class_docstr: TowheeConfig mapping for AutoConfig.
code: def set_triton_config(
      cls,
      device_ids: list,
      num_instances_per_device: int,
      max_batch_size: int,
      batch_latency_micros: int,
      preferred_batch_size: list,
  ) -> "TowheeConfig":
      config = {
          "server": {
              "device_ids": device_ids,
              "num_instances_per_device": num_instances_per_device,
              "max_batch_size": max_batch_size,
              "batch_latency_micros": batch_latency_micros,
              "triton": {"preferred_batch_size": preferred_batch_size},
          }
      }
      return cls(config)
  
imports: from typing import Dict, Optional, List
  from pydantic import BaseModel, Extra, validator
label_desc: Use image node_id 4 for calling the TowheeConfig obj's underlying member method code with example usage: obj.set_triton_config(cls, device_ids, num_instances_per_device, max_batch_size, batch_latency_micros, preferred_batch_size) and returns: cls