This passage is an example of an analogy. An analogy is a comparison between two things that are similar in some way. In this case, the author compares Derrick's tendency to exaggerate or lie with the character of Pinocchio, whose nose grows when he tells a lie.