code: def list_assignment_groups(self, course_id, exclude_assignment_submission_types=None, grading_period_id=None, include=None, override_assignment_dates=None, scope_assignments_to_student=None):
          path = {}
          data = {}
          params = {}
          path["course_id"] = course_id
          if include is not None:
              self._validate_enum(include, ["assignments", "discussion_topic", "all_dates", "assignment_visibility", "overrides", "submission"])
              params["include"] = include
          if exclude_assignment_submission_types is not None:
              self._validate_enum(exclude_assignment_submission_types, ["online_quiz", "discussion_topic", "wiki_page", "external_tool"])
              params["exclude_assignment_submission_types"] = exclude_assignment_submission_types
          if override_assignment_dates is not None:
              params["override_assignment_dates"] = override_assignment_dates
          if grading_period_id is not None:
              params["grading_period_id"] = grading_period_id
          if scope_assignments_to_student is not None:
              params["scope_assignments_to_student"] = scope_assignments_to_student
          self.logger.debug("GET /api/v1/courses/{course_id}/assignment_groups with query params: {params} and form data: {data}".format(params=params, data=data, **path))
          return self.generic_request("GET", "/api/v1/courses/{course_id}/assignment_groups".format(**path), data=data, params=params, all_pages=True)