code: def add_constant_feature(D):
      """add ones at the first column of the matrix
  
      Parameters
      __________
      D : array, shape(n, m)
          raw data matrix
  
      Returns
      -------
      D : array, shape((n + 1, m)
          data matrix with constant terms
      """
  
      return np.c_[np.ones(D.shape[0]), D]
  
imports: import sys
  import logging
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: add_constant_feature(D) and returns: np