code: def test_refcount_vectorize(self):
      # Ticket #378
      def p(x, y):
          return 123
  
      v = np.vectorize(p)
      _assert_valid_refcount(v)
  
imports: import os
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_array_almost_equal, assert_raises, _assert_valid_refcount
label_desc: Use image node_id 7 for calling the TestRegression obj's underlying member method code with example usage: obj.test_refcount_vectorize() and returns: int