code: def rand(*args):
      """
      Return a matrix of random values with given shape.
  
      Create a matrix of the given shape and propagate it with
      random samples from a uniform distribution over ``[0, 1)``.
  
      Parameters
      ----------
      \\*args : Arguments
          Shape of the output.
          If given as N integers, each integer specifies the size of one
          dimension.
          If given as a tuple, this tuple gives the complete shape.
  
      Returns
      -------
      out : ndarray
          The matrix of random values with shape given by `\\*args`.
  
      See Also
      --------
      randn, numpy.random.rand
  
      Examples
      --------
      >>> import numpy.matlib
      >>> np.matlib.rand(2, 3)
      matrix([[ 0.68340382,  0.67926887,  0.83271405],
              [ 0.00793551,  0.20468222,  0.95253525]])       #random
      >>> np.matlib.rand((2, 3))
      matrix([[ 0.84682055,  0.73626594,  0.11308016],
              [ 0.85429008,  0.3294825 ,  0.89139555]])       #random
  
      If the first argument is a tuple, other arguments are ignored:
  
      >>> np.matlib.rand((2, 3), 4)
      matrix([[ 0.46898646,  0.15163588,  0.95188261],
              [ 0.59208621,  0.09561818,  0.00583606]])       #random
  
      """
      if isinstance(args[0], tuple):
          args = args[0]
      return asmatrix(np.random.rand(*args))
  
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 6 for calling a global function with example usage: rand() and returns: asmatrix