code: def test_dataset_to_point_list(input_type):
      if input_type == "dict":
          ds = {}
      elif input_type == "Dataset":
          ds = xarray.Dataset()
      ds["A"] = xarray.DataArray(
          [[1, 2, 3]] * 2, dims=("chain", "draw")
      )
      pl, _ = dataset_to_point_list(ds, sample_dims=["chain", "draw"])
      assert isinstance(pl, list)
      assert len(pl) == 6
      assert isinstance(pl[0], dict)
      assert isinstance(pl[0]["A"], np.ndarray)
  
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 4 for calling a global function with example usage: test_dataset_to_point_list(input_type) without return types