class_docstr: Test Streamlit utility functions.
class_docstr_tok: ["Test","Streamlit","utility","functions","."]
docstr: Test that util.memoize works.
docstr_tok: ["Test","that","util.memoize","works","."]
code: def test_memoization(self):
      """Test that util.memoize works."""
      non_memoized_func = lambda: random.randint(0, 1000000)
      yes_memoized_func = util.memoize(non_memoized_func)
      self.assertNotEqual(non_memoized_func(), non_memoized_func())
      self.assertEqual(yes_memoized_func(), yes_memoized_func())
  
file_path: streamlit/lib/tests/streamlit/util_test.py
imports: import random
  import unittest
  from typing import Dict, List, Set
  from unittest.mock import patch
  import numpy
  from parameterized import parameterized
  from streamlit import util
label_desc: Use image node_id 1 for calling the UtilTest obj's underlying member method code with example usage: obj.test_memoization() without return types