code: def validate_version_pragma(version_str: str, start: ParserPosition) -> None:
      
      from vyper import (
          __version__,
      )
  
      version_arr = version_str.split('@version')
  
      file_version = version_arr[1].strip()
      file_major, file_minor, file_patch = _parse_version_str(file_version, start)
      compiler_major, compiler_minor, compiler_patch = _parse_version_str(__version__, start)
  
      if (file_major, file_minor) != (compiler_major, compiler_minor):
          raise VersionException(
              f'File version "{file_version}" is not compatible '
              f'with compiler version "{__version__}"',
              start,
          )
docs: Validates a version pragma directive against the current compiler version.