def is_rot_plug(m_plug):
    """
    Checks if a given plug is a rotation plug.

    Args:
        m_plug
    Return:
        output
    """
    valid_plugs = ('rotate', 'rotateX', 'rotateY', 'rotateZ')
    plug_name = m_plug.name().split(".")[-1]

    output = plug_name in valid_plugs

    return output