class_docstr: This module is intended for testing. It injects an image into the
  image set.
class_docstr_tok: ["This","module","is","intended","for","testing",".","It","injects","an","image","into","the","image","set","."]
docstr: Run the module (abstract method)
  
  pipeline     - instance of CellProfiler.Pipeline for this run
  image_set    - the images in the image set being processed
  object_set   - the objects (labeled masks) in this image set
  measurements - the measurements for this run
docstr_tok: ["Run","the","module","(","abstract","method",")","pipeline","-","instance","of","CellProfiler.Pipeline","for","this","run","image_set","-","the","images","in","the","image","set","being","processed","object_set","-","the","objects","(","labeled","masks",")","in","this","image","set","measurements","-","the","measurements","for","this","run"]
code: def run(self, workspace):
      """Run the module (abstract method)
  
      pipeline     - instance of CellProfiler.Pipeline for this run
      image_set    - the images in the image set being processed
      object_set   - the objects (labeled masks) in this image set
      measurements - the measurements for this run
      """
      if isinstance(self.__image, (tuple, list)):
          image = self.__image[workspace.image_set.image_number - 1]
      else:
          image = self.__image
      if isinstance(self.__mask, (tuple, list)):
          mask = self.__mask[workspace.image_set.image_number - 1]
      else:
          mask = self.__mask
      image = Image(image, mask)
      workspace.image_set.add(self.__image_name, image)
  
imports: import hashlib
  import numpy
  from ..image import Image
  from ..module import Module
  from ..setting.text import Name
label_desc: Use image node_id 8 for calling the InjectImage obj's underlying member method code with example usage: obj.run(workspace) without return types