def METHOD_NAME(qp, sys):
    if (len(qp.pos.shape), len(qp.rot.shape)) != (2, 2):
        raise RuntimeError("unexpected shape in qp")
    scene, instances, extra_info = _scene(sys)
    return instances, scene, extra_info