

def _validate_version(self, version):
    if (version not in self.VALID_TEMPLATE_VERSIONS):
        ExceptionCollector.appendException(InvalidTemplateVersion(what=version, valid_versions=', '.join(self.VALID_TEMPLATE_VERSIONS)))
    elif (self != 'tosca_simple_yaml_1_0'):
        update_definitions(version)

dataset/ETHPy150Open openstack/tosca-parser/toscaparser/tosca_template.py ToscaTemplate._validate_version/VarMisuse@50/67 `version`->`self`