code: func NewInstanceStateShimmedFromValue(state cty.Value, schemaVersion int) *InstanceState {
  	attrs := hcl2shim.FlatmapValueFromHCL2(state)
  	return &InstanceState{
  		ID:         attrs["id"],
  		Attributes: attrs,
  		Meta: map[string]interface{}{
  			"schema_version": schemaVersion,
  		},
  	}
  }
docs: // NewInstanceStateShimmedFromValue is a shim method to lower a new-style
  // object value representing the attributes of an instance object into the
  // legacy InstanceState representation.
  //
  // This is for shimming to old components only and should not be used in new code.