code: def img_data():
      import PIL.Image
  
      images = {}
      digits = list(range(10))
      for digit in digits:
          img_path = f"samples/{digit}.png"
          with open(img_path, "rb") as f:
              img_bytes = f.read()
          img_arr = np.array(PIL.Image.open(io.BytesIO(img_bytes)))
          img_arr = img_arr / 255.0
          img_dic = {
              "bytes": img_bytes,
              "array": img_arr,
          }
          images[digit] = img_dic
  
      return images
  
imports: import io
  import json
  import numpy
  import pytest
  from bentoml.testing.utils import async_request
label_desc: Use image node_id 1 for calling a global function with example usage: img_data() and returns: images