Human: What is a good Python function to insert an element into an index list. Assistant: 
Here is a Python function to insert element into index list

import collections

def insert_list(list, index, element):
    """
        Inserts element into index list
    :param list:
    :param index:
    :param element:
    :return:
    """
    list.insert(index, element)

# Enter the list
list = [1, 2, 3, 4, 5]

# Calling the function
print((insert_list(list, 2, 6)))

# Printing the list
print(list)

#Example Output
# None
# [1, 2, 6, 3, 4, 5]

#Remember to inspect code for bugs.