def get_enterprise_customer_or_404(enterprise_uuid):
EnterpriseCustomer = apps.get_model('<STR_LIT>', '<STR_LIT>')  <EOL>try:<EOL><INDENT>enterprise_uuid = UUID(enterprise_uuid)<EOL>return EnterpriseCustomer.objects.get(uuid=enterprise_uuid)  <EOL><DEDENT>except (TypeError, ValueError, EnterpriseCustomer.DoesNotExist):<EOL><INDENT>LOGGER.error('<STR_LIT>', enterprise_uuid)<EOL>raise Http404<EOL><DEDENT>
Given an EnterpriseCustomer UUID, return the corresponding EnterpriseCustomer or raise a 404.

Arguments:
    enterprise_uuid (str): The UUID (in string form) of the EnterpriseCustomer to fetch.

Returns:
    (EnterpriseCustomer): The EnterpriseCustomer given the UUID.