def insert_enterprise_pipeline_elements(pipeline):
 if (not enterprise_enabled()):
  return
 additional_elements = ('enterprise.tpa_pipeline.set_data_sharing_consent_record', 'enterprise.tpa_pipeline.verify_data_sharing_consent')
 insert_point = pipeline.index('social.pipeline.social_auth.load_extra_data')
 for (index, element) in enumerate(additional_elements):
  pipeline.insert((insert_point + index), element)

def insert_enterprise_pipeline_elements ( pipeline ) : if ( not enterprise_enabled ( ) ) : return additional_elements = ( 'enterprise.tpa_pipeline.set_data_sharing_consent_record' , 'enterprise.tpa_pipeline.verify_data_sharing_consent' ) insert_point = pipeline . index ( 'social.pipeline.social_auth.load_extra_data' ) for ( index , element ) in enumerate ( additional_elements ) : pipeline . insert ( ( insert_point + index ) , element )
if the enterprise app is enabled .