def encode_as_multipart(multipart_container, boundary):
 (v_vars, v_files) = _split_vars_files(multipart_container)
 (_, data) = multipart_encode(v_vars, v_files, boundary=boundary)
 return data

def encode_as_multipart ( multipart_container , boundary ) : ( v_vars , v_files ) = _split_vars_files ( multipart_container ) ( _ , data ) = multipart_encode ( v_vars , v_files , boundary = boundary ) return data
encode the datacontainer using multipart/post .