code: def test_last_memo():
      history = []
  
      def func(foo):
          history.append(foo)
  
      cache = lku.LastMemo(func)
  
      cache("foo")
      assert len(history) == 1
      # string literals are interned
      cache("foo")
      assert len(history) == 1
      cache("bar")
      assert len(history) == 2
  
file_path: lkpy/tests/test_util.py
imports: import time
  import re
  import pathlib
  import numpy
  import pandas
  from lenskit import util
label_desc: Use image node_id 8 for calling a global function with example usage: test_last_memo() without return types