def collect_local_names(node):
    const_names = []
    param_names = []
    params = node.parameters
    for param in (params.positional + params.keywords):
        param_names.append(param.name)
    if params.starparam:
        param_names.append(params.starparam)
    for item in node.body:
        if isinstance(item, ConstExpr):
            const_names.append(item.name)
    return const_names, param_names
Calculate the derivative of each element in the matrix.
dataset/ETHPy150Open nucleic/enaml/enaml/core/template_compiler.py/collect_local_names--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.diff