def match(self, filepath):
        try:
            with open(filepath) as fp:
                file_content = fp.read()
        except OSError:
            return False

        try:
            dict_content = yaml.load(file_content)
        except (ReaderError, ScannerError):
            return False

        try:
            assert dict_content.get('handler') == 'passpie'
            assert isinstance(dict_content.get('version'), float)
        except __HOLE__:
            return False

        return True
dataset/ETHPy150Open marcwebbie/passpie/passpie/importers/default_importer.py/DefaultImporter.match