code: def GetVmodlType(name):
     
  
     # If the input is already a type, just return
     if isinstance(name, type):
        return name
  
     # Try to get type from vmodl type names table
     typ = vmodlTypes.get(name)
     if typ:
        return typ
  
     # Else get the type from the _wsdlTypeMap
     isArray = name.endswith("[]")
     if isArray:
        name = name[:-2]
     ns, wsdlName = _GetWsdlInfo(name)
     try:
        typ = GetWsdlType(ns, wsdlName)
     except KeyError:
        raise KeyError(name)
     if typ:
        return isArray and typ.Array or typ
     else:
        raise KeyError(name)
docs: Get type from vmodl name