def build_enterprise_api_url(self, resource, *args, **kwargs):
return '<STR_LIT>'.format(<EOL>lms_root_url=settings.LMS_INTERNAL_ROOT_URL,<EOL>enterprise_api_uri=reverse(resource, args=args),<EOL>params=('<STR_LIT:?>' + urlencode(kwargs)) if kwargs else '<STR_LIT>',<EOL>)<EOL>
DRY method to make Enterprise API URLs.

Example URL: 'enterprise/api/v1/enterprise-customer/{enterprise_uuid}/courses'