def METHOD_NAME(self):
    # Test that permuting an array of objects will not cause
    # a segfault on garbage collection.
    # See gh-7719
    np.random.seed(1234)
    a = np.array([np.arange(1), np.arange(4)], dtype=object)
    for _ in range(1000):
        np.random.shuffle(a)
    # Force Garbage Collection - should not segfault.
    import gc
    gc.collect()