code: def main():
      root_path = os.path.dirname(
          os.path.dirname(os.path.abspath(__file__))
      )
      miss_files = []
      for root, _dirs, files in os.walk(
          os.path.join(root_path, "mars")
      ):
          for fn in files:
              rel_path = os.path.relpath(
                  os.path.join(root, fn), root_path
              )
              if any(
                  PurePath(rel_path).match(patt) for patt in _IGNORES
              ):
                  continue
              if all(
                  not PurePath(rel_path).match(patt)
                  for patt in _MATCH_FILES
              ):
                  continue
  
              file_path = os.path.join(root, fn)
              with open(file_path, "rb") as input_file:
                  file_lines = [
                      line
                      for line in input_file.read().split(b"\n")
                      if line.startswith(b"#")
                  ]
              comments = b"\n".join(file_lines)
              if b"Copyright" not in comments:
                  miss_files.append(rel_path)
      if miss_files:
          file_list = "\n    ".join(miss_files)
          sys.stderr.write(
              f"Please add missing copyright header for files:\n    {file_list}\n"
          )
          sys.exit(1)
  
imports: import os
  import sys
  from pathlib import PurePath
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types