code: func (addr *ResourceAddress) ModuleInstanceAddr() addrs.ModuleInstance {
  	path := make(addrs.ModuleInstance, len(addr.Path))
  	for i, name := range addr.Path {
  		path[i] = addrs.ModuleInstanceStep{Name: name}
  	}
  	return path
  }
docs: // ModuleInstanceAddr returns the module path portion of the receiver as a
  // addrs.ModuleInstance value.