code: def check_api_version(resource_root, min_version):
    
    if resource_root.version < min_version:
      raise Exception("API version %s is required but %s is in use."
          % (min_version, resource_root.version))
docs: Checks if the resource_root's API version it at least the given minimum
    version.