code: def create_version(
      self,
      version,
      from_version=None,
      is_stable=False,
      is_beta=False,
      is_hidden=True,
  ):
      if version in self.get_versions():
          raise ValueError(
              "Version "
              + version
              + " already exists! Cannot create it."
          )
  
      # If no source version, pick the latest one
      if not from_version:
          max_version = 0
          for ver in self.get_versions():
              ver = float(ver)
              if ver > max_version:
                  max_version = ver
          from_version = str(max_version)
  
      data = {
          "version": "v" + version,
          "is_stable": str(is_stable).lower(),
          "is_beta": str(is_beta).lower(),
          "is_hidden": str(is_hidden).lower(),
          "from": from_version,
      }
      self.get_versions()[version] = self.__api_POST(
          "version", data, "Creating version " + version
      )
  
imports: import json
  import os
  from requests.auth import HTTPBasicAuth
  import requests
label_desc: Use image node_id 17 for calling the ReadMeSession obj's underlying member method code with example usage: obj.create_version(version, from_version, is_stable, is_beta, is_hidden) without return types