def METHOD_NAME(o, t):
    totalAPI = 0
    wrongAPI = 0
    try:
        i = o.New()
    except AttributeError:
        # We only care about object that can be constructed with New() since
        # we only worry about ITK ProcessObjects.
        return totalAPI, wrongAPI
    # Skip abstract classes
    if i.GetNameOfClass() != t:
        return totalAPI, wrongAPI
    # Only check itkProcessObjects
    if issubclass(o, itk.ProcessObject):
        totalAPI = 1
        numberOfIndexedOutputs = i.GetNumberOfIndexedOutputs()
        has_GetOutput = hasattr(i, "GetOutput")
        if ((numberOfIndexedOutputs == 0) == has_GetOutput) or (
            numberOfIndexedOutputs >= 1 and not has_GetOutput
        ):
            msg = (
                "%s: Wrong API: `GetOutput()` %s found, NumberOfIndexedOutputs: %d"
                % (
                    i.GetNameOfClass(),
                    "not" * (not has_GetOutput),
                    numberOfIndexedOutputs,
                )
            )
            print(msg, file=sys.stderr)
            wrongAPI = 1
        elif numberOfIndexedOutputs >= 1:
            i.GetOutput()
    return totalAPI, wrongAPI