code: def test_shuffle_of_array_of_different_length_strings(self):
      # Test that permuting an array of different length strings
      # will not cause a segfault on garbage collection
      # Tests gh-7710
      random.seed(1234)
  
      a = np.array(["a", "a" * 1000])
  
      for _ in range(100):
          random.shuffle(a)
  
      # Force Garbage Collection - should not segfault.
      import gc
  
      gc.collect()
  
imports: import sys
  import pytest
  from numpy.testing import assert_, assert_array_equal, assert_raises
  import numpy
  from numpy import random
label_desc: Use image node_id 9 for calling the TestRegression obj's underlying member method code with example usage: obj.test_shuffle_of_array_of_different_length_strings() without return types