code: def _CreateAllTypes(self, enumTypes, dataTypes, managedTypes):
        
  
        # Create versions
        for typeInfo in managedTypes:
           name = typeInfo[0]
           version = typeInfo[3]
           VmomiSupport.AddVersion(version, '', '1.0', 0, name)
           VmomiSupport.AddVersionParent(version, 'vmodl.version.version0')
           VmomiSupport.AddVersionParent(version, 'vmodl.version.version1')
           VmomiSupport.AddVersionParent(version, version)
  
        # Create partial types
        for fn, infos in (VmomiSupport.CreateEnumType, enumTypes), \
                         (VmomiSupport.CreateDataType, dataTypes), \
                         (VmomiSupport.CreateManagedType, managedTypes):
           for typeInfo in infos:
              try:
                 fn(*typeInfo)
              except Exception as err:
                 #Ignore errors due to duplicate importing
                 pass
docs: Create pyVmomi types from pyVmomi type definitions