code: def ones(shape, dtype=None, order="C"):
      """
      Matrix of ones.
  
      Return a matrix of given shape and type, filled with ones.
  
      Parameters
      ----------
      shape : {sequence of ints, int}
          Shape of the matrix
      dtype : data-type, optional
          The desired data-type for the matrix, default is np.float64.
      order : {'C', 'F'}, optional
          Whether to store matrix in C- or Fortran-contiguous order,
          default is 'C'.
  
      Returns
      -------
      out : matrix
          Matrix of ones of given shape, dtype, and order.
  
      See Also
      --------
      ones : Array of ones.
      matlib.zeros : Zero matrix.
  
      Notes
      -----
      If `shape` has length one i.e. ``(N,)``, or is a scalar ``N``,
      `out` becomes a single row matrix of shape ``(1,N)``.
  
      Examples
      --------
      >>> np.matlib.ones((2,3))
      matrix([[ 1.,  1.,  1.],
              [ 1.,  1.,  1.]])
  
      >>> np.matlib.ones(2)
      matrix([[ 1.,  1.]])
  
      """
      a = ndarray.__new__(matrix, shape, dtype, order=order)
      a.fill(1)
      return a
  
file_path: catboost/contrib/python/numpy/py2/numpy/matlib.py
imports: from __future__ import division, absolute_import, print_function
  import numpy
  from numpy.matrixlib.defmatrix import matrix, asmatrix
  from numpy import *
label_desc: Use image node_id 2 for calling a global function with example usage: ones(shape, dtype, order) and returns: a