docs: def raise_for_version(self, line: str, position: int, version: str) -> None:
          """Check that a version string is valid for BEL documents.
  
          This means it's either in the YYYYMMDD or semantic version format.
  
          :param line: The line being parsed
          :param position: The position in the line being parsed
          :param str version: A version string
          :raises: VersionFormatWarning
          """
          if valid_date_version(version):
              return
  
          if not SEMANTIC_VERSION_STRING_RE.match(version):
              raise VersionFormatWarning(self.get_line_number(), line, position, version)