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 __array_finalize__(self, obj):
      # `self` is a new object resulting from super().__new__(cls, ...), therefore it
      # only has attributes that the ndarray.__new__ constructor gave it -
      # i.e. those of a standard ndarray.
      if obj is None:
          return
      self._mode = getattr(obj, "_mode", None)
  
file_path: towhee/towhee/types/image.py
imports: import numpy
label_desc: Use image node_id 2 for calling the Image obj's underlying member method code with example usage: obj.__array_finalize__(obj) without return types