I don't think there's a clear consensus on whether it's based on a true story. It could have some inspiration from real-life situations, but a lot could also be fabricated for entertainment purposes.
It's a blend of truth and fiction. While based on true events, the creators likely added some creative elements to make the story more compelling and cinematic.