human
I wrote the below code

    def _process_vector_differential(vectdiff, condition, variable, ordinate, frame):
        '\n                                Helper    function    for    get_motion    methods.    Finds    derivative    of    vectdiff    wrt\n                                variable,    and    its    integral    using    the    specified    boundary    condition    at\n                                value    of    variable    =    ordinate.\n                                Returns    a    tuple    of    -    (derivative,    function    and    integral)    wrt    vectdiff\n\n                                '
        if (condition != 0):
            condition = express(condition, frame, variables=True)
        if (vectdiff == Vector(0)):
            return (0, 0, condition)
        vectdiff1 = express(vectdiff, frame)
        vectdiff2 = time_derivative(vectdiff, frame)
        vectdiff0 = Vector(0)
        lims = (variable, ordinate, variable)
        for dim in frame:
            function1 = vectdiff1.dot(dim)
            abscissa = dim.dot(condition).subs({variable: ordinate})
            vectdiff0 += ((integrate(function1, lims) + abscissa) * dim)
        return (vectdiff2, vectdiff, vectdiff0)
    _check_frame(frame)
    if ('acceleration' in kwargs):
        mode = 2
    elif ('velocity' in kwargs):
        mode = 1
    else:
        mode = 0
    conditions = ['acceleration', 'velocity', 'position', 'timevalue', 'timevalue1', 'timevalue2']
    for (i, x) in enumerate(conditions):
        if (x not in kwargs):
            if (i < 3):
                kwargs[x] = Vector(0)
            else:
                kwargs[x] = S(0)
        elif (i < 3):
            _check_vector(kwargs[x])
        else:
            kwargs[x] = sympify(kwargs[x])
    if (mode == 2):
        vel = _process_vector_differential(kwargs['acceleration'], kwargs['velocity'], dynamicsymbols._t, kwargs['timevalue2'], frame)[2]
        pos = _process_vector_differential(vel, kwargs['position'], dynamicsymbols._t, kwargs['timevalue1'], frame)[2]
       ...

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def get_motion_params(frame, **kwargs):