code: def test_testCopySize(self):
      # Tests of some subtle points of copying and sizing.
      n = [0, 0, 1, 0, 0]
      m = make_mask(n)
      m2 = make_mask(m)
      assert_(m is m2)
      m3 = make_mask(m, copy=True)
      assert_(m is not m3)
  
      x1 = np.arange(5)
      y1 = array(x1, mask=m)
      assert_(y1._data is not x1)
      assert_(allequal(x1, y1._data))
      assert_(y1._mask is m)
  
      y1a = array(y1, copy=0)
      # For copy=False, one might expect that the array would just
      # passed on, i.e., that it would be "is" instead of "==".
      # See gh-4043 for discussion.
      assert_(
          y1a._mask.__array_interface__ == y1._mask.__array_interface__
      )
  
      y2 = array(x1, mask=m3, copy=0)
      assert_(y2._mask is m3)
      assert_(y2[2] is masked)
      y2[2] = 9
      assert_(y2[2] is not masked)
      assert_(y2._mask is m3)
      assert_(allequal(y2.mask, 0))
  
      y2a = array(x1, mask=m, copy=1)
      assert_(y2a._mask is not m)
      assert_(y2a[2] is masked)
      y2a[2] = 9
      assert_(y2a[2] is not masked)
      assert_(y2a._mask is not m)
      assert_(allequal(y2a.mask, 0))
  
      y3 = array(x1 * 1.0, mask=m)
      assert_(filled(y3).dtype is (x1 * 1.0).dtype)
  
      x4 = arange(4)
      x4[2] = masked
      y4 = resize(x4, (8,))
      assert_(eq(concatenate([x4, x4]), y4))
      assert_(eq(getmask(y4), [0, 0, 1, 0, 0, 0, 1, 0]))
      y5 = repeat(x4, (2, 2, 2, 2), axis=0)
      assert_(eq(y5, [0, 0, 1, 1, 2, 2, 3, 3]))
      y6 = repeat(x4, 2, axis=0)
      assert_(eq(y5, y6))
  
imports: from functools import reduce
  import pickle
  import pytest
  import numpy
  import numpy._core.umath
  import numpy._core.fromnumeric
  from numpy.testing import assert_, assert_raises, assert_equal
  from numpy.ma import MaskType, MaskedArray, absolute, add, all, allclose, allequal, alltrue, arange, arccos, arcsin, arctan, arctan2, array, average, choose, concatenate, conjugate, cos, cosh, count, divide, equal, exp, filled, getmask, greater, greater_equal, inner, isMaskedArray, less, less_equal, log, log10, make_mask, masked, masked_array, masked_equal, masked_greater, masked_greater_equal, masked_inside, masked_less, masked_less_equal, masked_not_equal, masked_outside, masked_print_option, masked_values, masked_where, maximum, minimum, multiply, nomask, nonzero, not_equal, ones, outer, product, put, ravel, repeat, resize, shape, sin, sinh, sometrue, sort, sqrt, subtract, sum, take, tan, tanh, transpose, where, zeros
label_desc: Use image node_id 11 for calling the TestMa obj's underlying member method code with example usage: obj.test_testCopySize() without return types