pub fn variant_from_id(id: &str) -> Option<LibtorchVariant>
Map a variant ID string to a LibtorchVariant.
LibtorchVariant