def parse_resource(self, file_path):
        self.file_path = file_path
        if path.exists(file_path):
            if file_path in '__init__.':
                folder = path.dirname(file_path)
                model = parsing.TestDataDirectory(source=folder).populate()
            else:
                model = parsing.ResourceFile(file_path).populate()
            return self._parse_robot_data(file_path, model)
        else:
            logging.error('File %s could not be found', file_path)
            raise ValueError(
                'File does not exist: {0}'.format(file_path))
dataset/ETHPy150Open andriyko/sublime-robot-framework-assistant/dataparser/data_parser/data_parser.py/DataParser.parse_resource/swapped operands of `in`