code: def should_check(filename):
      # Getting options for plugins in flake8 is a bit of a hassle so we just hardcode
      # our conventions.
  
      path = Path(filename)
      if path.parent.name not in (
          "tests",
          "experimental",
          "flake8_plugins",
      ):
          return True
      with path.open() as fd:
          for line in itertools.islice(fd, 5):
              if line == "# check-docstrings\n":
                  return True
      return False
  
file_path: Ax/ax/utils/flake8_plugins/docstring_checker.py
imports: import ast
  import itertools
  from pathlib import Path
  from typing import Callable, List, NamedTuple, Type
label_desc: Use image node_id 1 for calling a global function with example usage: should_check(filename) and returns: False, True, True