code: def _gen_multipart_form_for_load(
      file: str, resolve: str, name="", version=""
  ):
      """Generate multipart form body and headers for /load request with uploaded file.
      Help (2022/11/08):
      https://stackoverflow.com/a/45703104
      https://stackoverflow.com/a/23517227
      """
      import io
  
      boundary = "----MultiPartFormBoundary" + _random_string(16)
      in_boundary = "--" + boundary
      out_boundary = in_boundary + "--"
  
      buff = io.BytesIO()
  
      buff.write(in_boundary.encode())
      buff.write(b"\r\n")
      buff.write(
          b'Content-Disposition: form-data; name="file"; filename="load.pkl"'
      )
      buff.write(b"\r\n")
      buff.write(b"Content-Type: application/octet-stream")
      buff.write(b"\r\n")
      buff.write(b"\r\n")
      with open(file, "rb") as data:
          buff.write(data.read())
      buff.write(b"\r\n")
  
      buff.write(in_boundary.encode())
      buff.write(b"\r\n")
      buff.write(b'Content-Disposition: form-data; name="resolve"')
      buff.write(b"\r\n")
      buff.write(b"\r\n")
      buff.write(resolve.encode())
      buff.write(b"\r\n")
  
      buff.write(in_boundary.encode())
      buff.write(b"\r\n")
      buff.write(b'Content-Disposition: form-data; name="name"')
      buff.write(b"\r\n")
      buff.write(b"\r\n")
      buff.write(name.encode())
      buff.write(b"\r\n")
  
      buff.write(in_boundary.encode())
      buff.write(b"\r\n")
      buff.write(b'Content-Disposition: form-data; name="version"')
      buff.write(b"\r\n")
      buff.write(b"\r\n")
      buff.write(version.encode())
      buff.write(b"\r\n")
  
      buff.write(out_boundary.encode())
      buff.write(b"\r\n")
  
      headers = {
          "Content-Type": f"multipart/form-data; boundary={boundary}",
          "Content-Length": str(buff.tell()),
      }
  
      return buff.getvalue(), headers
  
imports: import logging
  import os
  import random
  import string
  import time
  import pytest
  from falcon import testing
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils import generate_temporary_file
  from orion.serving.webapi import WebApi
  from orion.storage.backup import load_database
  from orion.storage.base import setup_storage
label_desc: Use image node_id 5 for calling a global function with example usage: _gen_multipart_form_for_load(file, resolve, name, version) and returns: buff,  headers