code: def prepare_data(batch_size):
      """
      Function to prepare data based on the desired batch size
      """
      f = io.open(TEST_DATA, "rb", buffering=0)
      read_data = f.read()
      data = []
      for i in range(batch_size):
          tmp = {}
          tmp["data"] = read_data
          data.append(tmp)
      return data
  
file_path: serve/examples/image_classifier/resnet_18/debugging_backend/test_handler.py
imports: import argparse
  import io
  import logging
  from pathlib import Path
  import torch
  from ts.torch_handler.image_classifier import ImageClassifier
  from ts.torch_handler.unit_tests.test_utils.mock_context import MockContext
label_desc: Use image node_id 1 for calling a global function with example usage: prepare_data(batch_size) and returns: data