pub fn metadata_variant_type(objtype: ObjectType) -> VariantType