code: func datacenterPathFromHostSystemID(client *govmomi.Client, hsID string) (string, error) {
  	hs, err := hostsystem.FromID(client, hsID)
  	if err != nil {
  		return "", err
  	}
  	return RootPathParticleHost.SplitDatacenter(hs.InventoryPath)
  }
docs: // datacenterPathFromHostSystemID returns the datacenter section of a
  // HostSystem's inventory path.