code: def image_bytes():
      with open(
          REPO_DIR.joinpath(
              "examples/image_classifier/mnist/test_data/0.png"
          ),
          "rb",
      ) as fin:
          image_bytes = fin.read()
      return image_bytes
  
file_path: serve/ts/torch_handler/unit_tests/test_mnist_kf.py
imports: import io
  import shutil
  import sys
  from pathlib import Path
  import pytest
  import torchvision.transforms
  from PIL import Image
  from examples.image_classifier.mnist.mnist_handler import MNISTDigitClassifier
  from ts.torch_handler.request_envelope import kserve, kservev2
  from .test_utils.mock_context import MockContext
label_desc: Use image node_id 1 for calling a global function with example usage: image_bytes() and returns: image_bytes