def METHOD_NAME(nodes, indices):
    m = nodes.mass()
    pos = nodes.positions()
    vel = nodes.velocity()
    assert nodes.numInternalNodes == 2
    return (m[0], pos[0].x, pos[0].y, vel[0].x, vel[0].y, 
            m[1], pos[1].x, pos[1].y, vel[1].x, vel[1].y)