code: def test_check_style():
      logging.getLogger().setLevel(logging.INFO)
      logging.info("PEP8 Style check")
      flake8_proc = Popen(
          ["flake8", "--count", "--max-line-length", "300"], stdout=PIPE
      )
      flake8_out = flake8_proc.communicate()[0]
      lines = flake8_out.splitlines()
      count = int(lines[-1].decode())
      if count > 0:
          warnings.warn(
              f"{count} PEP8 warnings remaining", stacklevel=2
          )
      assert (
          count < 10
      ), "Too many PEP8 warnings found, improve code quality to pass test."
  
imports: import logging
  import warnings
  from subprocess import PIPE, Popen
label_desc: Use image node_id 1 for calling a global function with example usage: test_check_style() without return types