IN PYTHON
Write a function called check_inventory(inventory, low) thatpasses a dictionary as inventory and low as an integer, and returnsa sorted list of items that are below an inventory level that isgiven by thelowinteger parameter. The function should work withoutthe low parameter supplied - in which case, you should assume lowis 5. You do not have to worry about reading and writing to a file,that code is provided, and you don’t have to change it. Example: Ifthe inventory is {'banana':3,'apple':10},check_inventory(inventory) will return the list['banana'] and printit in the output file. For the same inventory,check_inventory(inventory, 15) will return the list['apple','banana'] and print it out in the output file.