code: def open_ts_array(arr_path: Path):
      """Opens a Zarr file array with Tensorstore with basic setting.
  
      Arguments:
          arr_path (Path): path to a Zarr (Tensorstore) array
      """
      spec = {
          "driver": "zarr",
          "metadata_key": ".zarray",
          "kvstore": {},
      }
      spec["kvstore"] = {
          "driver": "file",
          "path": str(arr_path),
      }
      try:
          arr = ts.open(ts.Spec(spec), open=True).result()
      except Exception as e:
          raise CheckpointingException(
              f"Array {arr_path} could not be loaded. Error: {e}"
          ) from e
      return arr
  
imports: from functools import partial
  from itertools import starmap
  from logging import getLogger
  from pathlib import Path
  import tensorstore
  import torch
  from ..core import CheckpointingException
  from ..dict_utils import dict_list_map_inplace
  from ..mapping import ShardedStateDict, ShardedTensor
  from .base import LoadShardedStrategy, StrategyAction, default_strategies
  from .zarr import load_zarr_based_sharded_metadata, numpy_to_torch_dtype_dict, postprocess_numpy_array
label_desc: Use image node_id 4 for calling a global function with example usage: open_ts_array(arr_path) and returns: arr