def METHOD_NAME(self) -> None:
    value = dir(NDArray)
    if sys.version_info < (3, 9):
        return
    # A number attributes only exist in `types.GenericAlias` in >= 3.11
    if sys.version_info < (3, 11, 0, "beta", 3):
        value.remove("__typing_unpacked_tuple_args__")
    if sys.version_info < (3, 11, 0, "beta", 1):
        value.remove("__unpacked__")
    assert value == dir(NDArray_ref)