code: def setup(self, masked, ndim, size):
      x = np.arange(size**ndim).reshape(ndim * (size,))
  
      if masked:
          self.m = np.ma.array(x, mask=x % 2 == 0)
      else:
          self.m = np.ma.array(x)
  
      self.idx_scalar = (size // 2,) * ndim
      self.idx_0d = (size // 2,) * ndim + (Ellipsis,)
      self.idx_1d = (size // 2,) * (ndim - 1)
  
imports: from .common import Benchmark
  import numpy
label_desc: Use image node_id 1 for calling the Indexing obj's underlying member method code with example usage: obj.setup(masked, ndim, size) without return types