code: def __init__(self, x, cspace, dtype=None):
      super().__init__()  # gets attributes from '_TensorBase'
      self.x = x
  
      if cspace is None:
          self.cspace = "null"
  
      else:
          if cspace in (
              "rgb",
              "bgr",
              "gray",
              "hsv",
              "hls",
              "lab",
              "yuv",
              "luv",
          ):
              self.cspace = cspace
          else:
              raise ValueError(
                  "The `cspace` attribute needs to be either rgb/bgr/gray/hsv/hls/lab/yuv/luv"
              )
  
file_path: caer/caer/coreten/tensor.py
imports: import numpy
  from ..annotations import Union, Tuple, List
  from ._tensor_str import _str
  from ._tensor_base import _TensorBase
label_desc: Use image node_id 2 to create a new Tensor object from inherited base classes: _TensorBase, np with example: obj = Tensor(x, cspace, dtype)