class_docstr: This class represents an image object. The image data is a numpy.ndarray.
  
  Agrs:
      mode (`str`):
          The mode of the image(i.e. 'RGB', 'BGR', 'RGBA', 'HSV', etc.).
class_docstr_tok: ["This","class","represents","an","image","object",".","The","image","data","is","a","numpy.ndarray",".","Agrs",":","mode","(","`","str","`",")",":","The","mode","of","the","image","(","i.e",".","'RGB","'",",","'BGR","'",",","'RGBA","'",",","'HSV","'",",","etc",".",")","."]
code: def __new__(cls, data: np.ndarray, mode: str = None):
      # Cast `np.ndarray` to be `Image`.
      # See https://numpy.org/doc/stable/user/basics.subclassing.html for details.
      obj = np.asarray(data).view(cls)
      obj._mode = mode
      return obj
  
file_path: towhee/towhee/types/image.py
imports: import numpy
label_desc: Use image node_id 1 for calling the Image obj's underlying member method code with example usage: obj.__new__(cls, data, mode) and returns: obj