code: func Pathexpand(path cty.Value) (cty.Value, error) {
  	return PathExpandFunc.Call([]cty.Value{path})
  }
docs: // Pathexpand takes a string that might begin with a `~` segment, and if so it replaces that segment with
  // the current user's home directory path.
  //
  // The underlying function implementation works only with the path string and does not access the filesystem itself.
  // It is therefore unable to take into account filesystem features such as symlinks.
  //
  // If the leading segment in the path is not `~` then the given path is returned unmodified.