code: def assert_doc_style(name, member, doc):
      lines = doc.split("\n")
      first_line = lines[0]
      if len(first_line.strip()) == 0:
          raise ValueError(
              "{} the documentation should be on the first line.".format(
                  name
              ),
              member.__module__,
          )
      first_blank = [
          i for i, line in enumerate(lines) if not line.strip()
      ]
      if len(first_blank) > 0:
          if lines[first_blank[0] - 1].strip()[-1] != ".":
              raise ValueError(
                  "{} first line should end with a '.'".format(name),
                  member.__module__,
              )
  
file_path: keras-preprocessing/tests/test_documentation.py
imports: import importlib
  import inspect
  import re
  from itertools import compress
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: assert_doc_style(name, member, doc) without return types