docstr: Assert that nicer exception appears when user enters wrong coords name
code: def test_invalid_coord_name(
      self, sample_dataset
  ):  # pylint: disable=invalid-name
      """Assert that nicer exception appears when user enters wrong coords name"""
      _, _, data = sample_dataset
      coords = {"NOT_A_COORD_NAME": [1]}
  
      with pytest.raises(
          (KeyError, ValueError),
          match=(
              r"Coords "
              r"({'NOT_A_COORD_NAME'} are invalid coordinate keys"
              r"|should follow mapping format {coord_name:\[dim1, dim2\]})"
          ),
      ):
          get_coords(data, coords)
  
imports: import importlib
  import numpy
  import pytest
  import xarray
  from ...data import from_dict
  from ...plots.backends.matplotlib import dealiase_sel_kwargs, matplotlib_kwarg_dealiaser
  from ...plots.plot_utils import compute_ranks, filter_plotters_list, format_sig_figs, get_plotting_function, make_2d, set_bokeh_circular_ticks_labels, vectorized_to_hex
  from ...rcparams import rc_context
  from ...sel_utils import xarray_sel_iter, xarray_to_ndarray
  from ...stats.density_utils import get_bins
  from ...utils import get_coords
  from ..helpers import running_on_ci
label_desc: Use image node_id 1 for calling the TestCoordsExceptions obj's underlying member method code with example usage: obj.test_invalid_coord_name(sample_dataset) without return types