def METHOD_NAME(robot):
    """draws the joint axes of the robot
    """
    env = robot.GetEnv()
    h = None
    try:
        while True:
            h = [env.drawlinelist(array([j.GetAnchor()-j.GetAxis(0),j.GetAnchor()+j.GetAxis(0)]),5,array([0,0,float(j.GetDOFIndex())/robot.GetDOF()]))  for j in robot.GetJoints() if not j.IsStatic()]
            h += [env.drawlinelist(array([j.GetAnchor()-0.25*j.GetAxis(0),j.GetAnchor()+0.25*j.GetAxis(0)]),20,array([0,float(j.GetDOFIndex())/robot.GetDOF(),0]))  for j in robot.GetPassiveJoints() if not j.IsStatic()]
            time.sleep(0.1)
    finally:
        h = None