code: def serialize_workload_registry_entry(workload_key):
      """
      Serialize a workload registry entry.
  
      This is used when the start method of multiprocessing is spawn.
      We need to serialize the entry and register it in the new processes.
  
      Parameters
      ----------
      workload_key : str
          The workload key
  
      Returns
      -------
      data: Tuple
          The serialized pickable data
      """
      global WORKLOAD_FUNC_REGISTRY
  
      if workload_key in WORKLOAD_FUNC_REGISTRY:
          sname = workload_key
      else:
          workload = json.loads(workload_key)
          sname = workload[0]
  
      svalue = WORKLOAD_FUNC_REGISTRY[sname]
      if not callable(svalue):
          # pylint: disable=assignment-from-no-return
          svalue = SaveJSON(svalue)
  
      return sname, svalue
  
file_path: tvm/python/tvm/auto_scheduler/workload_registry.py
imports: import json
  import logging
  import pickle
  import tvm._ffi
  from tvm.runtime._ffi_node_api import LoadJSON, SaveJSON
  from .utils import deserialize_args, get_func_name, serialize_args
label_desc: Use image node_id 5 for calling a global function with example usage: serialize_workload_registry_entry(workload_key) and returns: sname,  svalue