code: def get_tiledb_schema_from_tensor(tensor, tiledb_ctx, nsplits, **kw):
      from ..core import TensorOrder
  
      ctx = tiledb_ctx
  
      dims = []
      for d in range(tensor.ndim):
          extent = tensor.shape[d]
          domain = (0, extent - 1)
          tile = max(nsplits[d])
          dims.append(
              tiledb.Dim(
                  name="",
                  domain=domain,
                  tile=tile,
                  dtype=np.int64,
                  ctx=ctx,
              )
          )
      dom = tiledb.Domain(*dims, ctx=ctx)
      att = tiledb.Attr(ctx=ctx, dtype=tensor.dtype)
      cell_order = "C" if tensor.order == TensorOrder.C_ORDER else "F"
      return tiledb.ArraySchema(
          ctx=ctx,
          domain=dom,
          attrs=(att,),
          sparse=tensor.issparse(),
          cell_order=cell_order,
          **kw,
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_tiledb_schema_from_tensor(tensor, tiledb_ctx, nsplits) and returns: tiledb