Bandit is a tool designed to find common security issues in Python code. To do this it processes each file,…