code: def array2d(X, dtype=None, order=None, copy=False, force_all_finite=True):
      
      X_2d = np.asarray(np.atleast_2d(X), dtype=dtype, order=order)
      if force_all_finite:
          _assert_all_finite(X_2d)
      if X is X_2d and copy:
          X_2d = _safe_copy(X_2d)
      return X_2d
docs: Returns at least 2-d array with data from X