code: func NewTranslateStore(node interface{}) pilosa.TranslateStore {
  	var n *pilosa.Node
  	switch v := node.(type) {
  	case string:
  		if uri, err := pilosa.NewURIFromAddress(v); err != nil {
  			panic("bad uri for translatestore in deprecated api")
  		} else {
  			n = &pilosa.Node{
  				ID:  v,
  				URI: *uri,
  			}
  		}
  	case *pilosa.Node:
  		n = v
  	default:
  		panic("*pilosa.Node is the only type supported by NewTranslateStore().")
  	}
  	return &translateStore{node: n}
  }
docs: // NewTranslateStore returns a new instance of TranslateStore based on node.
  // DEPRECATED: Providing a string url to this function is being deprecated. Instead,
  // provide a *pilosa.Node.
  // TODO (2.0) Refactor to avoid panic