docstr: Accessing secrets is thread-safe.
docstr_tok: ["Accessing","secrets","is","thread-safe","."]
code: def test_access_secrets(self, _):
      """Accessing secrets is thread-safe."""
  
      def access_secrets(_: int) -> None:
          self.assertEqual(self.secrets["db_username"], "Jane")
          self.assertEqual(
              self.secrets["subsection"]["email"], "eng@streamlit.io"
          )
          self.assertEqual(
              self.secrets["subsection"].email, "eng@streamlit.io"
          )
  
      call_on_threads(access_secrets, num_threads=self.NUM_THREADS)
  
imports: import os
  import tempfile
  import unittest
  from collections.abc import Mapping
  from collections.abc import MutableMapping
  from typing import Mapping, MutableMapping
  from unittest.mock import MagicMock, mock_open, patch
  from parameterized import parameterized
  from toml import TomlDecodeError
  from streamlit.runtime.secrets import SECRETS_FILE_LOCS, AttrDict, Secrets
  from tests.exception_capturing_thread import call_on_threads
label_desc: Use image node_id 3 for calling the SecretsThreadingTests obj's underlying member method code with example usage: obj.test_access_secrets(_) without return types