Is an expression that is used to give to understand that is think of way constant in something or someone without to remove is it of it head.The coconut in this case is a way of naming the head.
give the coconut is incorrectly written and it should be written as "Give the COCONUT." being its meaning: Verbal periphrasis that means thinking, reasoning. It is a metaphor, as coconut is used ideally as head.