code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.SubscriptionItem.list_usage_record_summaries(
    "si_DAyhPiOTjrdfTv",
    limit=3,
  )
  '''Response {
    "object": "list",
    "url": "/v1/subscription_items/si_DAyhPiOTjrdfTv/usage_record_summaries",
    "has_more": false,
    "data": [
      {
        "id": "sis_1DkWqo2eZvKYlo2Cs4NSCMMw",
        "object": "usage_record_summary",
        "invoice": "in_1DkWqo2eZvKYlo2Cghtks5xk",
        "livemode": false,
        "period": {
          "end": null,
          "start": null
        },
        "subscription_item": "si_18PMl42eZvKYlo2CGduFchWC",
        "total_usage": 1
      },
      {...},
      {...}
    ]
  }'''
nl: List all subscription item period summariesFor the specified subscription item, returns a list of summary objects. Each object in the list provides usage information that’s been summarized from multiple usage records and over a subscription billing period (e.g., 15 usage records in the month of September).
  The list is sorted in reverse-chronological order (newest first). The first list item represents the most current usage period that hasn’t ended yet. Since new usage records can still be added, the returned summary information for the subscription item’s ID should be seen as unstable until the subscription billing period ends.ParametersExpand all  ending_before optional   limit optional   starting_after optional ReturnsA dictionary with a data property that contains an array of up to limit summaries, starting after summary starting_after. Each entry in the array is a separate summary object. If no more summaries are available, the resulting array is empty