def create_course_image_thumbnail(course, dimensions):
 course_image_asset_key = StaticContent.compute_location(course.id, course.course_image)
 course_image = AssetManager.find(course_image_asset_key)
 (_content, thumb_loc) = contentstore().generate_thumbnail(course_image, dimensions=dimensions)
 return StaticContent.serialize_asset_key_with_slash(thumb_loc)

def create_course_image_thumbnail ( course , dimensions ) : course_image_asset_key = StaticContent . compute_location ( course . id , course . course_image ) course_image = AssetManager . find ( course_image_asset_key ) ( _content , thumb_loc ) = contentstore ( ) . generate_thumbnail ( course_image , dimensions = dimensions ) return StaticContent . serialize_asset_key_with_slash ( thumb_loc )
create a course image thumbnail and return the url .