code: def valarray(shape, value=np.NaN, typecode=None):
      
      if typecode is None:
          typecode = bool
      out = np.ones(shape, dtype=typecode) * value
  
      if not isinstance(out, np.ndarray):
          out = np.asarray(out)
      return out
docs: Return an array of all value.