code: def test_multiple_stats(self):
      @st.cache_resource
      def foo(count):
          return [3.14] * count
  
      @st.cache_resource
      def bar():
          return threading.Lock()
  
      foo(1)
      foo(53)
      bar()
      bar()
  
      foo_cache_name = f"{foo.__module__}.{foo.__qualname__}"
      bar_cache_name = f"{bar.__module__}.{bar.__qualname__}"
  
      expected = [
          CacheStat(
              category_name="st_cache_resource",
              cache_name=foo_cache_name,
              byte_length=(
                  get_byte_length(as_cached_result([3.14]))
                  + get_byte_length(as_cached_result([3.14] * 53))
              ),
          ),
          CacheStat(
              category_name="st_cache_resource",
              cache_name=bar_cache_name,
              byte_length=get_byte_length(as_cached_result(bar())),
          ),
      ]
  
      # The order of these is non-deterministic, so check Set equality
      # instead of List equality
      self.assertEqual(
          set(expected),
          set(get_resource_cache_stats_provider().get_stats()),
      )
  
imports: import threading
  import unittest
  from typing import Any, List
  from unittest.mock import Mock, patch
  from parameterized import parameterized
  import streamlit
  from streamlit.runtime.caching import cache_resource_api, get_resource_cache_stats_provider
  from streamlit.runtime.caching.cache_type import CacheType
  from streamlit.runtime.caching.cached_message_replay import MultiCacheResults
  from streamlit.runtime.caching.hashing import UserHashError
  from streamlit.runtime.scriptrunner import add_script_run_ctx
  from streamlit.runtime.stats import CacheStat
  from streamlit.vendor.pympler.asizeof import asizeof
  from tests.streamlit.runtime.caching.common_cache_test import as_cached_result
  from tests.testutil import create_mock_script_run_ctx
label_desc: Use image node_id 4 for calling the CacheResourceStatsProviderTest obj's underlying member method code with example usage: obj.test_multiple_stats() and returns: unknown, threading