code: def _is_good_file_for_multiqc(fpath):
      
      # Use mimetypes to exclude binary files where possible
      (ftype, encoding) = mimetypes.guess_type(fpath)
      if encoding is not None:
          return False
      if ftype is not None and ftype.startswith('image'):
          return False
      return True
docs: Returns False if the file is binary or image.