def METHOD_NAME(self, name: str, func: FuncType) -> None:
    value = func(NDArray)
    # xref bpo-45167
    GE_398 = (
        sys.version_info[:2] == (3, 9) and sys.version_info >= (3, 9, 8)
    )
    if GE_398 or sys.version_info >= (3, 10, 1):
        value_ref = func(NDArray_ref)
        assert value == value_ref