docs: def _format_with_same_year(format_specifier):
      """
      Return a version of `format_specifier` that renders a date
      assuming it has the same year as another date. Usually this means ommitting
      the year.
      
      This can be overridden by specifying a format that has `_SAME_YEAR` appended
      to the name in the project's `formats` spec.
      """
      # gotta use a janky way of resolving the format
      test_format_specifier = format_specifier + "_SAME_YEAR"
      test_format = get_format(test_format_specifier, use_l10n=True)
      if test_format == test_format_specifier:
          # this format string didn't resolve to anything and may be a raw format.
          # Use a regex to remove year markers instead.
          return re.sub(YEAR_RE, '', get_format(format_specifier))
      else:
          return test_format