code: def convert_to_form(entry):
      data = {}
      files = []
      for k, v in entry.items():
          if type(v) == str and os.path.exists(v):
              file = open(v, "rb")
              files.append(
                  (k, (v, file.read(), "application/octet-stream"))
              )
          else:
              data[k] = v
      return data, files
  
file_path: ludwig/tests/integration_tests/test_server.py
imports: import json
  import logging
  import os
  import sys
  import numpy
  import pytest
  from ludwig.api import LudwigModel
  from ludwig.constants import BATCH_SIZE, DECODER, TRAINER
  from ludwig.serve import server
  from ludwig.utils.data_utils import read_csv
  from tests.integration_tests.utils import audio_feature, category_feature, generate_data, image_feature, LocalTestBackend, number_feature, text_feature
label_desc: Use image node_id 4 for calling a global function with example usage: convert_to_form(entry) and returns: data,  files