code: def test_clip_memoize():
      clip = BitmapClip(
          [["RR", "RR"], ["GG", "GG"], ["BB", "BB"]], fps=1
      )
  
      assert not clip.memoize
  
      memoize_clip = clip.with_memoize(True)
      assert memoize_clip.memoize
  
      # get_frame memoizing
      memoize_clip.memoized_t = 5
      memoize_clip.memoized_frame = "foo"
  
      assert memoize_clip.get_frame(5) == "foo"
  
      assert isinstance(memoize_clip.get_frame(1), np.ndarray)
  
file_path: moviepy/tests/test_Clip.py
imports: import copy
  import numpy
  import pytest
  from moviepy.Clip import Clip
  from moviepy.video.VideoClip import BitmapClip, ColorClip
label_desc: Use image node_id 9 for calling a global function with example usage: test_clip_memoize() without return types