code: def has_hash_of(self, destpath, code, package):
          
          if destpath is not None and os.path.isfile(destpath):
              with openfile(destpath, "r") as opened:
                  compiled = readfile(opened)
              hashash = gethash(compiled)
              if hashash is not None and hashash == self.comp.genhash(package, code):
                  return compiled
          return None
docs: Determine if a file has the hash of the code.