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: Initializer
  
  image_name - the name of the image to put into the image set
  
  image - either the pixel data for the image if adding the same
          image to every set or a list or tuple of pixel data,
          one per image set
  
  mask - None for no mask (default), a binary 2-d matrix if same mask
         for all image sets or a list or tuple of masks if one
         different mask per image set.
docstr_tok: ["Initializer","image_name","-","the","name","of","the","image","to","put","into","the","image","set","image","-","either","the","pixel","data","for","the","image","if","adding","the","same","image","to","every","set","or","a","list","or","tuple","of","pixel","data",",","one","per","image","set","mask","-","None","for","no","mask","(","default",")",",","a","binary","2-d","matrix","if","same","mask","for","all","image","sets","or","a","list","or","tuple","of","masks","if","one","different","mask","per","image","set","."]
code: def __init__(self, image_name, image, mask=None, release_image=False):
      """Initializer
  
      image_name - the name of the image to put into the image set
  
      image - either the pixel data for the image if adding the same
              image to every set or a list or tuple of pixel data,
              one per image set
  
      mask - None for no mask (default), a binary 2-d matrix if same mask
             for all image sets or a list or tuple of masks if one
             different mask per image set.
      """
      super(InjectImage, self).__init__()
      self.__image_name = image_name
      self.__image = image
      self.__mask = mask
      self.image_name = Name(
          "Hardwired image name", "imagegroup", image_name
      )
      self.__release_image = release_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 1 to create a new InjectImage object from inherited base classes: Module with example: obj = InjectImage(image_name, image, mask, release_image)