code: def ones(shape, dtype=None, **kwargs):
      
      if dtype is None:
          dtype = _numpy.float32
      return _internal._ones(shape=shape, dtype=dtype, **kwargs)
docs: Returns a new symbol of given shape and type, filled with ones.
  
      Parameters
      ----------
      shape :  int or sequence of ints
          Shape of the new array.
      dtype : str or numpy.dtype, optional
          The value type of the inner value, default to ``np.float32``.
  
      Returns
      -------
      out : Symbol
          The created Symbol