code: def make_params(d):
      """Make a fake params structure from a dictionary
  
      e.g., x = dict(foo=dict(bar=5)) -> x.foo.bar = 5
      """
  
      class X(object):
          def __init__(self, d):
              for key in list(d.keys()):
                  value = d[key]
                  if isinstance(value, dict):
                      value = X(value)
                  setattr(self, key, value)
  
      return X(d)
  
imports: import base64
  import io
  import os
  import tempfile
  import zlib
  import imageio
  import centrosome.outline
  import numpy
  import scipy.ndimage
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules
  import cellprofiler.modules.untangleworms
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 4 for calling a global function with example usage: make_params(d) and returns: X