code: def get_course_data_sharing_consent(username, course_id, enterprise_customer_uuid):
      
      # Prevent circular imports.
      DataSharingConsent = apps.get_model('consent', 'DataSharingConsent')  # pylint: disable=invalid-name
      return DataSharingConsent.objects.proxied_get(
          username=username,
          course_id=course_id,
          enterprise_customer__uuid=enterprise_customer_uuid
      )
docs: Get the data sharing consent object associated with a certain user of a customer for a course.
  
      :param username: The user that grants consent.
      :param course_id: The course for which consent is granted.
      :param enterprise_customer_uuid: The consent requester.
      :return: The data sharing consent object