docstr: StatsManager.get_stats should return all providers' stats.
docstr_tok: ["StatsManager.get_stats","should","return","all","providers","'","stats","."]
code: def test_get_stats(self):
      """StatsManager.get_stats should return all providers' stats."""
      manager = StatsManager()
      provider1 = MockStatsProvider()
      provider2 = MockStatsProvider()
      manager.register_provider(provider1)
      manager.register_provider(provider2)
  
      # No stats
      self.assertEqual([], manager.get_stats())
  
      # Some stats
      provider1.stats = [
          CacheStat("provider1", "foo", 1),
          CacheStat("provider1", "bar", 2),
      ]
  
      provider2.stats = [
          CacheStat("provider2", "baz", 3),
          CacheStat("provider2", "qux", 4),
      ]
  
      self.assertEqual(
          provider1.stats + provider2.stats, manager.get_stats()
      )
  
file_path: streamlit/lib/tests/streamlit/runtime/stats_test.py
imports: import unittest
  from typing import List
  from streamlit.runtime.stats import CacheStat, CacheStatsProvider, StatsManager, group_stats
label_desc: Use image node_id 1 for calling the StatsManagerTest obj's underlying member method code with example usage: obj.test_get_stats() without return types