<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def atleast_2d(*arys, **kwargs):
 """ View inputs as arrays with at least two dimensions. Parameters One or more array-like sequences. Non-array inputs are converted to arrays. Arrays that already have two or more dimensions are preserved. insert_axis : int (optional) Where to create a new axis if input array(s) have <2 dim. Returns ------- An array, or tuple of arrays, each with ``a.ndim >= 2``. Copies are avoided where possible, and views with two or more dimensions are returned. Examples -------- array([[3.]]) array([[0., 1., 2.]]) array([[0.], [1.], [2.]]) True [array([[1]]), array([[1, 2]]), array([[1, 2]])] """

    insert_axis = kwargs.pop('insert_axis', 0)
    slc = [slice(None)]*2
    slc[insert_axis] = None
    slc = tuple(slc)

    res = []
    for ary in arys:
        ary = np.asanyarray(ary)
        if len(ary.shape) == 0:
            result = ary.reshape(1, 1)
        elif len(ary.shape) == 1:
            result = ary[slc]
        else:
            result = ary
        res.append(result)
    if len(res) == 1:
        return res[0]
    else:
        return res