code: def check_tiledb_array_with_tensor(tensor, tiledb_array):
      if tensor.ndim != tiledb_array.ndim:
          # ndim
          raise ValueError(
              "ndim of TileDB Array to store is different to tensor, "
              f"expect {tensor.ndim}, got {tiledb_array.ndim}"
          )
      if tensor.shape != tiledb_array.shape:
          # shape
          raise ValueError(
              "shape of TileDB Array to store is different to tensor, "
              f"expect {tensor.shape}, got {tiledb_array.shape}"
          )
      if tensor.dtype != tiledb_array.attr(0).dtype:
          # dtype
          raise ValueError(
              "dtype of TileDB Array to store is different to tensor, "
              f"expect {tensor.dtype}, got {tiledb_array.domain.dtype}"
          )
  
label_desc: Use image node_id 2 for calling a global function with example usage: check_tiledb_array_with_tensor(tensor, tiledb_array) without return types