code: def make_workspace(
      image,
      size_method,
      interpolation,
      mask=None,
      cropping=None,
      dimensions=2,
  ):
      module = cellprofiler.modules.resize.Resize()
      module.x_name.value = INPUT_IMAGE_NAME
      module.y_name.value = OUTPUT_IMAGE_NAME
      module.size_method.value = size_method
      module.interpolation.value = interpolation
      module.set_module_num(1)
      pipeline = cellprofiler_core.pipeline.Pipeline()
      pipeline.add_module(module)
      image_set_list = cellprofiler_core.image.ImageSetList()
      image_set = image_set_list.get_image_set(0)
      image = cellprofiler_core.image.Image(
          image, mask, cropping, dimensions=dimensions
      )
      image_set.add(INPUT_IMAGE_NAME, image)
      workspace = cellprofiler_core.workspace.Workspace(
          pipeline,
          module,
          image_set,
          cellprofiler_core.object.ObjectSet(),
          cellprofiler_core.measurement.Measurements(),
          image_set_list,
      )
      return workspace, module
  
imports: import io
  import numpy
  import numpy.testing
  import skimage.exposure
  import skimage.transform
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.resize
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 2 for calling a global function with example usage: make_workspace(image, size_method, interpolation, mask, cropping, dimensions) and returns: workspace,  module