code: def create_calendar_event(self, calendar_event, **kwargs):
          
          from canvasapi.calendar_event import CalendarEvent
  
          if isinstance(calendar_event, dict) and 'context_code' in calendar_event:
              kwargs['calendar_event'] = calendar_event
          else:
              raise RequiredFieldMissing(
                  "Dictionary with key 'context_codes' is required."
              )
  
          response = self.__requester.request(
              'POST',
              'calendar_events',
              _kwargs=combine_kwargs(**kwargs)
          )
  
          return CalendarEvent(self.__requester, response.json())
docs: Create a new Calendar Event.
  
          :calls: `POST /api/v1/calendar_events \
          <https://canvas.instructure.com/doc/api/calendar_events.html#method.calendar_events_api.create>`_
  
          :param calendar_event: The attributes of the calendar event.
          :type calendar_event: `dict`
          :rtype: :class:`canvasapi.calendar_event.CalendarEvent`