code: def make_sendable_dictionary(d):
      """Make a dictionary that passes muster with JSON"""
      result = {}
      fake_key_idx = 1
      for k, v in list(d.items()):
          if (isinstance(k, str) and k.startswith("_")) or callable(
              d[k]
          ):
              continue
          if isinstance(v, dict):
              v = make_sendable_dictionary(v)
          elif isinstance(v, (list, tuple)):
              v = make_sendable_sequence(v)
          if not isinstance(k, str):
              if SD_KEY_DICT not in result:
                  result[SD_KEY_DICT] = {}
              fake_key = "__%d__" % fake_key_idx
              fake_key_idx += 1
              result[SD_KEY_DICT][fake_key] = k
              result[fake_key] = v
          else:
              result[k] = v
      return result
  
imports: import errno
  import json
  import logging
  import os
  import queue
  import sys
  import threading
  import uuid
  import numpy
  import zmq
  import cellprofiler_core.utilities.grid
  from cellprofiler_core.utilities.zmq._boundary import Boundary
  from cellprofiler_core.utilities.zmq.communicable.reply import LockStatusReply, Reply
  from cellprofiler_core.utilities.zmq.communicable.request import LockStatusRequest, Request
label_desc: Use image node_id 3 for calling a global function with example usage: make_sendable_dictionary(d) and returns: result