Answer: personification
Step-by-step explanation:
Personification refers to a figurative language whereby the characteristics of human being are given to objects or non human objects.
From the passage, an example of personification was used where cabs were said to be ashamed to show their shabbiness. Here, non human objects were given human attributes.