code: def check_surrounding_whitespaces(self, definition, docstring):
          
          if docstring:
              lines = ast.literal_eval(docstring).split('\n')
              if lines[0].startswith(' ') or \
                      len(lines) == 1 and lines[0].endswith(' '):
                  return violations.D210()
docs: D210: No whitespaces allowed surrounding docstring text.