code: def get_enterprise_customer_for_running_pipeline(request, pipeline):  # pylint: disable=invalid-name
      
      sso_provider_id = request.GET.get('tpa_hint')
      if pipeline:
          sso_provider_id = Registry.get_from_pipeline(pipeline).provider_id
      return get_enterprise_customer_for_sso(sso_provider_id)
docs: Get the EnterpriseCustomer associated with a running pipeline.