def get_unit_element(group, component):
    """ Get unit element of a group component (ZR, G1, G2, or GT)

    :param PairingGroup group: a group object
    :param int component: a group component (ZR, G1, G2, or GT)
    """
    return group.random(component) ** 0