docs: def get_assignments(
              self,
              gradebook_id='',
              simple=False,
              max_points=True,
              avg_stats=False,
              grading_stats=False
      ):
          """Get assignments for a gradebook.
  
          Return list of assignments for a given gradebook,
          specified by a py:attribute::gradebook_id.  You can control
          if additional parameters are returned, but the response
          time with py:attribute::avg_stats and py:attribute::grading_stats
          enabled is significantly longer.
  
          Args:
              gradebook_id (str): unique identifier for gradebook, i.e. ``2314``
              simple (bool): return just assignment names, default= ``False``
              max_points (bool):
                  Max points is a property of the grading scheme for the
                  assignment rather than a property of the assignment itself,
                  default= ``True``
              avg_stats (bool): return average grade, default= ``False``
              grading_stats (bool):
                  return grading statistics, i.e. number of approved grades,
                  unapproved grades, etc., default= ``False``
  
          Raises:
              requests.RequestException: Exception connection error
              ValueError: Unable to decode response content
  
          Returns:
              list: list of assignment dictionaries
  
              An example return value is:
  
              .. code-block:: python
  
                  [
                      {
                          u'assignmentId': 2431240,
                          u'categoryId': 1293820,
                          u'description': u'',
                          u'dueDate': 1372392000000,
                          u'dueDateString': u'06-28-2013',
                          u'gradebookId': 1293808,
                          u'graderVisible': True,
                          u'gradingSchemeId': 2431243,
                          u'gradingSchemeType': u'NUMERIC',
                          u'isComposite': False,
                          u'isHomework': False,
                          u'maxPointsTotal': 10.0,
                          u'name': u'Homework 1',
                          u'shortName': u'HW1',
                          u'userDeleted': False,
                          u'weight': 1.0
                      },
                      {
                          u'assignmentId': 16708850,
                          u'categoryId': 1293820,
                          u'description': u'',
                          u'dueDate': 1383541200000,
                          u'dueDateString': u'11-04-2013',
                          u'gradebookId': 1293808,
                          u'graderVisible': False,
                          u'gradingSchemeId': 16708851,
                          u'gradingSchemeType': u'NUMERIC',
                          u'isComposite': False,
                          u'isHomework': False,
                          u'maxPointsTotal': 100.0,
                          u'name': u'midterm1',
                          u'shortName': u'mid1',
                          u'userDeleted': False,
                          u'weight': 1.0
                      },
                  ]
  
         """
          # These are parameters required for the remote API call, so
          # there aren't too many arguments
          # pylint: disable=too-many-arguments
          params = dict(
              includeMaxPoints=json.dumps(max_points),
              includeAvgStats=json.dumps(avg_stats),
              includeGradingStats=json.dumps(grading_stats)
          )
  
          assignments = self.get(
              'assignments/{gradebookId}'.format(
                  gradebookId=gradebook_id or self.gradebook_id
              ),
              params=params,
          )
          if simple:
              return [{'AssignmentName': x['name']}
                      for x in assignments['data']]
          return assignments['data']