code: def make_workspace(image, labels, convert=True, mask=None):
      """Make a workspace for testing MeasureTexture"""
      module = cellprofiler.modules.measuretexture.MeasureTexture()
      module.images_list.value = INPUT_IMAGE_NAME
      module.objects_list.value = INPUT_OBJECTS_NAME
      pipeline = cellprofiler_core.pipeline.Pipeline()
      object_set = cellprofiler_core.object.ObjectSet()
      image_set_list = cellprofiler_core.image.ImageSetList()
      image_set = image_set_list.get_image_set(0)
      workspace = cellprofiler_core.workspace.Workspace(
          pipeline,
          module,
          image_set,
          object_set,
          cellprofiler_core.measurement.Measurements(),
          image_set_list,
      )
      image_set.add(
          INPUT_IMAGE_NAME,
          cellprofiler_core.image.Image(
              image, convert=convert, dimensions=image.ndim, mask=mask
          ),
      )
      objects = cellprofiler_core.object.Objects()
      objects.segmented = labels
      object_set.add_objects(objects, INPUT_OBJECTS_NAME)
      return workspace, module
  
imports: import io
  import numpy
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.measuretexture
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
label_desc: Use image node_id 1 for calling a global function with example usage: make_workspace(image, labels, convert, mask) and returns: workspace,  module