docs: def _registrations_for_section_with_active_flag(section, is_active,
                                                  transcriptable_course=""):
      """
      Returns a list of all uw_sws.models.Registration objects
      for a section. There can be duplicates for a person.
      If is_active is True, the objects will have is_active set to True.
      Otherwise, is_active is undefined, and out of scope for this method.
      """
      instructor_reg_id = ""
      if (section.is_independent_study and
              section.independent_study_instructor_regid is not None):
          instructor_reg_id = section.independent_study_instructor_regid
  
      params = [
          ("curriculum_abbreviation", section.curriculum_abbr),
          ("instructor_reg_id", instructor_reg_id),
          ("course_number", section.course_number),
          ("verbose", "true"),
          ("year", section.term.year),
          ("quarter", section.term.quarter),
          ("is_active", "true" if is_active else ""),
          ("section_id", section.section_id),
      ]
  
      if transcriptable_course != "":
          params.append(("transcriptable_course", transcriptable_course,))
  
      url = "{}?{}".format(registration_res_url_prefix, urlencode(params))
  
      return _json_to_registrations(get_resource(url), section)