code: def check_capitalized(self, function, docstring):
          
          if docstring:
              first_word = ast.literal_eval(docstring).split()[0]
              if first_word == first_word.upper():
                  return
              for char in first_word:
                  if char not in string.ascii_letters and char != "'":
                      return
              if first_word != first_word.capitalize():
                  return violations.D403(first_word.capitalize(), first_word)
docs: D403: First word of the first line should be properly capitalized.
  
          The [first line of a] docstring is a phrase ending in a period.