code: func flattenSliceOfDvsHostInfrastructureTrafficResource(d *schema.ResourceData, s []types.DvsHostInfrastructureTrafficResource) error {
  	for _, v := range s {
  		if err := flattenDvsHostInfrastructureTrafficResource(d, v, v.Key); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // flattenSliceOfDvsHostInfrastructureTrafficResource reads in the supplied network I/O control allocation entries supplied via a respective DVSConfigInfo field and sets the appropriate keys in the supplied ResourceData.