docstr: Test that a badly-formatted TTL string raises an exception.
docstr_tok: ["Test","that","a","badly-formatted","TTL","string","raises","an","exception","."]
code: def test_ttl_str_exception(self):
      """Test that a badly-formatted TTL string raises an exception."""
      with self.assertRaises(BadTTLStringError):
          ttl_to_seconds("")
  
      with self.assertRaises(BadTTLStringError):
          ttl_to_seconds("1 flecond")
  
file_path: streamlit/lib/tests/streamlit/runtime/caching/cache_utils_test.py
imports: import math
  import unittest
  from datetime import timedelta
  from typing import Any
  from parameterized import parameterized
  from streamlit.runtime.caching.cache_errors import BadTTLStringError
  from streamlit.runtime.caching.cache_utils import ttl_to_seconds
label_desc: Use image node_id 3 for calling the CacheUtilsTest obj's underlying member method code with example usage: obj.test_ttl_str_exception() without return types