code: def ones(
      shape: _ShapeLike,
      dtype: DTypeLike = float,
      order: _OrderCF = "C",
  ) -> NDArray[Any]:
      """Returns a new array of given shape and dtype, filled with ones.
  
      This function currently does not support ``order`` option.
  
      Args:
          shape (int or tuple of ints): Dimensionalities of the array.
          dtype (data-type, optional): Data type specifier.
          order ({'C', 'F'}): Row-major (C-style) or column-major
              (Fortran-style) order.
  
      Returns:
          cupy.ndarray: An array filled with ones.
  
      .. seealso:: :func:`numpy.ones`
  
      """
      a = cupy.ndarray(shape, dtype, order=order)
      a.fill(1)
      return a
  
file_path: cupy/cupy/_creation/basic.py
imports: from typing import Any, Optional
  import numpy
  import cupy
  from cupy._core.internal import _get_strides_for_order_K, _update_order_char
  from cupy.typing._types import _OrderKACF, _OrderCF, _ShapeLike, DTypeLike, NDArray
label_desc: Use image node_id 6 for calling a global function with example usage: ones(shape, dtype, order) and returns: a