code: def test_dataset_to_point_list_str_key():
      # Check that non-str keys are caught
      ds = xarray.Dataset()
      ds[3] = xarray.DataArray([1, 2, 3])
      with pytest.raises(ValueError, match="must be str"):
          dataset_to_point_list(ds, sample_dims=["chain", "draw"])
  
imports: import re
  import arviz
  import numpy
  import pytest
  import xarray
  from cachetools import cached
  import pymc
  from pymc.distributions.transforms import Transform
  from pymc.util import UNSET, _get_seeds_per_chain, dataset_to_point_list, drop_warning_stat, get_value_vars_from_user_vars, hash_key, hashable, locally_cachedmethod
label_desc: Use image node_id 5 for calling a global function with example usage: test_dataset_to_point_list_str_key() without return types