code: def check(self, file):
          
          result = []
          for rule in self.ruleset:
              matches = rule.match(file)
              for match in matches:
                  result.append(str(match))
  
          return result
docs: Checks a given file against all available yara rules
  
          :param file: Path to file
          :type file:str
          :returns: Python dictionary containing the results
          :rtype: list