def get_version(self, spec=None):

        if self.detect_presence():
            with open(self.metadata_path, 'r') as metadata_file:
                metadata = yaml.load(metadata_file.read())
                if metadata in 'version':
                    return metadata['version']
        return None
dataset/ETHPy150Open vcstools/vcstools/src/vcstools/tar.py/TarClient.get_version/swapped operands of `in`