docs: def get_provisioned_table_write_units(table_name):
      """ Returns the number of provisioned write units for the table
  
      :type table_name: str
      :param table_name: Name of the DynamoDB table
      :returns: int -- Number of write units
      """
      try:
          desc = DYNAMODB_CONNECTION.describe_table(table_name)
      except JSONResponseError:
          raise
  
      write_units = int(
          desc[u'Table'][u'ProvisionedThroughput'][u'WriteCapacityUnits'])
  
      logger.debug('{0} - Currently provisioned write units: {1:d}'.format(
          table_name, write_units))
      return write_units