code: def test_get_tile_db_schema():
      ctx = tiledb.Ctx()
  
      nsplits = ((1, 2), (3, 1), (2, 2, 1))
      a = random.rand(3, 4, 5, dtype=np.float64, chunk_size=nsplits)
      schema = get_tiledb_schema_from_tensor(a, ctx, nsplits)
      assert schema.ndim == 3
      assert schema.shape == (3, 4, 5)
      assert [schema.domain.dim(i).tile for i in range(a.ndim)] == [
          2,
          3,
          2,
      ]
      assert schema.attr(0).dtype == a.dtype
  
file_path: mars/mars/tensor/datastore/tests/test_datastore.py
imports: import shutil
  import tempfile
  import numpy
  import pytest
  from ....core import tile
  from ...None import random
  from ..None import totiledb
  from ..utils import get_tiledb_schema_from_tensor, check_tiledb_array_with_tensor
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_tile_db_schema() without return types