docs: def list_calendar_events(self, all_events=None, context_codes=None, end_date=None, excludes=None, start_date=None, type=None, undated=None):
          """
          List calendar events.
  
          Retrieve the list of calendar events or assignments for the current user
          """
          path = {}
          data = {}
          params = {}
  
          # OPTIONAL - type
          """Defaults to "event""""
          if type is not None:
              self._validate_enum(type, ["event", "assignment"])
              params["type"] = type
  
          # OPTIONAL - start_date
          """Only return events since the start_date (inclusive).
          Defaults to today. The value should be formatted as: yyyy-mm-dd or ISO 8601 YYYY-MM-DDTHH:MM:SSZ."""
          if start_date is not None:
              params["start_date"] = start_date
  
          # OPTIONAL - end_date
          """Only return events before the end_date (inclusive).
          Defaults to start_date. The value should be formatted as: yyyy-mm-dd or ISO 8601 YYYY-MM-DDTHH:MM:SSZ.
          If end_date is the same as start_date, then only events on that day are
          returned."""
          if end_date is not None:
              params["end_date"] = end_date
  
          # OPTIONAL - undated
          """Defaults to false (dated events only).
          If true, only return undated events and ignore start_date and end_date."""
          if undated is not None:
              params["undated"] = undated
  
          # OPTIONAL - all_events
          """Defaults to false (uses start_date, end_date, and undated criteria).
          If true, all events are returned, ignoring start_date, end_date, and undated criteria."""
          if all_events is not None:
              params["all_events"] = all_events
  
          # OPTIONAL - context_codes
          """List of context codes of courses/groups/users whose events you want to see.
          If not specified, defaults to the current user (i.e personal calendar,
          no course/group events). Limited to 10 context codes, additional ones are
          ignored. The format of this field is the context type, followed by an
          underscore, followed by the context id. For example: course_42"""
          if context_codes is not None:
              params["context_codes"] = context_codes
  
          # OPTIONAL - excludes
          """Array of attributes to exclude. Possible values are "description", "child_events" and "assignment""""
          if excludes is not None:
              params["excludes"] = excludes
  
          self.logger.debug("GET /api/v1/calendar_events with query params: {params} and form data: {data}".format(params=params, data=data, **path))
          return self.generic_request("GET", "/api/v1/calendar_events".format(**path), data=data, params=params, all_pages=True)