def create_host_template(resource_root, name, cluster_name):
  """
  Create a host template.
  @param resource_root: The root Resource object.
  @param name: Host template name
  @param cluster_name: Cluster name
  @return: An ApiHostTemplate object for the created host template.
  @since: API v3
  """
  apitemplate = ApiHostTemplate(resource_root, name, [])
  return call(resource_root.post,
      HOST_TEMPLATES_PATH % (cluster_name,),
      ApiHostTemplate, True, data=[apitemplate], api_version=3)[0]