code: def check_asf_copyright(fname):
      if fname.endswith(".png"):
          return True
      if not os.path.isfile(fname):
          return True
      has_asf_header = False
      has_copyright = False
      try:
          for line in open(fname):
              if (
                  line.find(
                      "Licensed to the Apache Software Foundation"
                  )
                  != -1
              ):
                  has_asf_header = True
              if copyright_line(line):
                  has_copyright = True
              if has_asf_header and has_copyright:
                  return False
      except UnicodeDecodeError:
          pass
      return True
  
imports: import os
  import sys
  import subprocess
label_desc: Use image node_id 3 for calling a global function with example usage: check_asf_copyright(fname) and returns: True, True, True, False