code: def find_copyright_issues(path: Path):
      """Checks for copyright headers and their years."""
      if not path.is_file():
          yield 0, f"No such file or a directory '{path}'.", None
          return
  
      this_year = datetime.datetime.now().year
  
      lines = path.read_text().splitlines()
  
      for line_no, line in enumerate(lines):
          start, end = get_copyright_years(line)
          if start is None:
              continue
          if start > end:
              yield line_no, "First year after second year in the copyright header (manual fix required)", None
          elif this_year < start:
              yield line_no, "Current year not included in the copyright header", replace_current_year(
                  line, this_year, end
              )
          elif this_year > end:
              yield line_no, "Current year not included in the copyright header", replace_current_year(
                  line, start, this_year
              )
          break
      else:
          # Did not find copyright header.
          yield 0, "Copyright header missing or formatted incorrectly (manual fix required)", None
  
imports: import argparse
  import datetime
  import logging
  import os
  import re
  import sys
  from pathlib import Path
  from typing import Optional
  import git
label_desc: Use image node_id 5 for calling a global function with example usage: find_copyright_issues(path) without return types