code: func splitSubresource(path string) (string, string, error) {
  	var resource, subresource string
  	switch parts := strings.Split(path, "/"); len(parts) {
  	case 2:
  		resource, subresource = parts[0], parts[1]
  	case 1:
  		resource = parts[0]
  	default:
  		// TODO: support deeper paths
  		return "", "", fmt.Errorf("api_installer allows only one or two segment paths (resource or resource/subresource)")
  	}
  	return resource, subresource, nil
  }
docs: // splitSubresource checks if the given storage path is the path of a subresource and returns
  // the resource and subresource components.