The tennis star drew on her grandmother’s experiences.