code: def create_or_update_transcript_preferences(course_id, **preferences):
      
      transcript_preference, __ = TranscriptPreference.objects.update_or_create(
          course_id=course_id, defaults=preferences
      )
      return TranscriptPreferenceSerializer(transcript_preference).data
docs: Creates or updates course-wide transcript preferences
  
      Arguments:
          course_id(str): course id
  
      Keyword Arguments:
          preferences(dict): keyword arguments