code: def course_detail(self, request, pk, course_key):  # pylint: disable=invalid-name,unused-argument
          
          enterprise_customer_catalog = self.get_object()
          course = enterprise_customer_catalog.get_course(course_key)
          if not course:
              raise Http404
  
          context = self.get_serializer_context()
          context['enterprise_customer_catalog'] = enterprise_customer_catalog
          serializer = serializers.CourseDetailSerializer(course, context=context)
          return Response(serializer.data)
docs: Return the metadata for the specified course.
  
          The course needs to be included in the specified EnterpriseCustomerCatalog
          in order for metadata to be returned from this endpoint.