code: func DiffFromValues(prior, planned cty.Value, res *Resource) (*terraform.InstanceDiff, error) {
  	return diffFromValues(prior, planned, res, nil)
  }
docs: // DiffFromValues takes the current state and desired state as cty.Values and
  // derives a terraform.InstanceDiff to give to the legacy providers. This is
  // used to take the states provided by the new ApplyResourceChange method and
  // convert them to a state+diff required for the legacy Apply method.