
    Develop a function that takes a list of existing fraud detection patterns and a new security flag, and adds the new security flag before each existing pattern in the bank's transaction monitoring system. The function should return an updated list of security patterns that incorporates the new flag before each existing pattern to enhance the bank's real-time fraud detection capabilities.
    

    
def insert_element(list, element):
    """
    Develop a function that takes a list of existing fraud detection patterns and a new security flag, and adds the new security flag before each existing pattern in the bank's transaction monitoring system. The function should return an updated list of security patterns that incorporates the new flag before each existing pattern to enhance the bank's real-time fraud detection capabilities.
    

    """
def insert_element(list, element):
    """
    Develop a function that takes a list of existing fraud detection patterns and a new security flag, and adds the new security flag before each existing pattern in the bank's transaction monitoring system. The function should return an updated list of security patterns that incorporates the new flag before each existing pattern to enhance the bank's real-time fraud detection capabilities.
    

    """
    list = [v for elt in list for v in (element, elt)]
    return list