code: def __calculate_always_decrease_rw_values(
          table_name, read_units, provisioned_reads,
          write_units, provisioned_writes):
      
      if read_units <= provisioned_reads and write_units <= provisioned_writes:
          return (read_units, write_units)
  
      if read_units < provisioned_reads:
          logger.info(
              '{0} - Reads could be decreased, but we are waiting for '
              'writes to get lower than the threshold before '
              'scaling down'.format(table_name))
  
          read_units = provisioned_reads
  
      elif write_units < provisioned_writes:
          logger.info(
              '{0} - Writes could be decreased, but we are waiting for '
              'reads to get lower than the threshold before '
              'scaling down'.format(table_name))
  
          write_units = provisioned_writes
  
      return (read_units, write_units)
docs: Calculate values for always-decrease-rw-together
  
      This will only return reads and writes decreases if both reads and writes
      are lower than the current provisioning
  
  
      :type table_name: str
      :param table_name: Name of the DynamoDB table
      :type read_units: int
      :param read_units: New read unit provisioning
      :type provisioned_reads: int
      :param provisioned_reads: Currently provisioned reads
      :type write_units: int
      :param write_units: New write unit provisioning
      :type provisioned_writes: int
      :param provisioned_writes: Currently provisioned writes
      :returns: (int, int) -- (reads, writes)