def METHOD_NAME(instance_id, products, user, sp_id, sp2_id, insides, timestamp=None,
                    date_formatter=json_format_datetime, device_id=None):
    timestamp = timestamp or datetime.utcnow()
    date_string = date_formatter(timestamp)
    insides = insides() if callable(insides) else insides
    return ("""<?xml version="1.0" ?>
        <data uiVersion="1" version="33" name="New Form" xmlns="http://commtrack.org/test_form_submission">
            <products>{product0} {product1} {product2}</products>
            <meta>
                <deviceID>{device_id}</deviceID>
                <timeStart>2013-12-10T17:08:46.215-05</timeStart>
                <timeEnd>2013-12-10T17:08:57.887-05</timeEnd>
                <username>{username}</username>
                <userID>{user_id}</userID>
                <instanceID>{instance_id}</instanceID>
                <appVersion>CommTrack Unit tests</appVersion>
            </meta>
            <num_products>3</num_products>
            <cur_products>3</cur_products>
            %s
        </data>
    """ % insides).format(
        sp_id=sp_id,
        sp2_id=sp2_id,
        product0=products[0]._id,
        product1=products[1]._id,
        product2=products[2]._id,
        user_id=user._id,
        instance_id=instance_id,
        username=user.username,
        long_date=date_string,
        device_id=device_id if device_id is not None else '',
    )