code: func CheckMdsAvailability() error {
  	if conn, err := net.Dial("unix", common.MetadataServiceRegSock); err != nil {
  		return errUnreachable
  	} else {
  		conn.Close()
  		return nil
  	}
  }
docs: // CheckMdsAvailability checks whether a local metadata service can be reached.