code: def test_animation_frame_rgb(animation_frame, binary_string):
      img = np.random.randint(255, size=(10, 9, 8, 3)).astype(np.uint8)
      fig = px.imshow(
          img,
          animation_frame=animation_frame,
          binary_string=binary_string,
      )
      nslices = img.shape[animation_frame]
      assert len(fig.frames) == nslices
  
imports: import plotly.express
  import numpy
  import pytest
  import xarray
  from PIL import Image
  from io import BytesIO
  import base64
  import datetime
  from plotly.express.imshow_utils import rescale_intensity
label_desc: Use image node_id 27 for calling a global function with example usage: test_animation_frame_rgb(animation_frame, binary_string) without return types