Example of a unisexual flower is papaya.
Function of the petal is to attract specific pollinators to the flower for the process of pollination. The attracted animal-like bees feed on the nectar of the flowers and collect pollen on its body to a different place and different flower