code: def available_api_versions(base_url, timeout=10, verify=True):
      
      try:
          r = requests.get('%s/api' % base_url, timeout=timeout,
                           verify=verify)  # no session required
          
          if r.status_code == 200:
              j = json.loads(r.text)
              versions = []
              for version in j['version']:
                  versions.append(version['rel'])
              return versions
          
          raise SMCConnectionError(
              'Invalid status received while getting entry points from SMC. '
              'Status code received %s. Reason: %s' % (r.status_code, r.reason))
  
      except requests.exceptions.RequestException as e:
          raise SMCConnectionError(e)
docs: Get all available API versions for this SMC
  
      :return version numbers
      :rtype: list