class_docstr: AcceleratorConf
code: def type_match(cls, v):
      if v not in ["triton", "mock"]:
          raise ValueError(f"Unkown accelerator: {v}")
      return v
  
imports: from typing import Dict, Optional, List
  from pydantic import BaseModel, Extra, validator
label_desc: Use image node_id 1 for calling the AcceleratorConf obj's underlying member method code with example usage: obj.type_match(cls, v) and returns: v