code: def _ConvertMethodType(self, methodType):
        
        if methodType:
           name = methodType.name
           wsdlName = methodType.wsdlName
           version = methodType.version
           params = self._Filter(self._ConvertParamType, methodType.paramTypeInfo)
           privId = methodType.privId
           faults = methodType.fault
  
           # Figure out reture info
           if methodType.returnTypeInfo:
              returnTypeInfo = methodType.returnTypeInfo
              retFlags = self._ConvertAnnotations(returnTypeInfo.annotation)
              methodRetType = returnTypeInfo.type
           else:
              retFlags = 0
              methodRetType = "void"
           if wsdlName.endswith("_Task"):
              # TODO: Need a seperate task return type for task, instead of
              #       hardcode vim.Task as return type
              retType = "vim.Task"
           else:
              retType = methodRetType
           retInfo = (retFlags, retType, methodRetType)
  
           method = (name, wsdlName, version, params, retInfo, privId, faults)
        else:
           method = None
        return method
docs: Convert vmodl.reflect.DynamicTypeManager.MethodTypeInfo to pyVmomi method
        definition