The sentence above presents a simile.
You have not shown the question associated with that sentence. However, from questions similar to yours, it is possible to know that you want to know what is the figure of speech exposed in the sentence.
We can say that the sentence has a simile because:
In the sentence, it is necessary to see that a comparison between the opening of the coconut and the arrival of a night.
More information:
https://brainly.com/question/9305447?referrer=searchResults