class_docstr: Test VIRR L1B Reader.
class_docstr_tok: ["Test","VIRR","L1B","Reader","."]
code: def _assert_which_channels_are_loaded(
      available_datasets, band_names, resolution_to_test
  ):
      from satpy.dataset.data_dict import get_key
      from satpy.tests.utils import make_dsq
  
      other_resolutions = RESOLUTION_LIST.copy()
      other_resolutions.remove(resolution_to_test)
      for band_name in band_names:
          for resolution in other_resolutions:
              ds_q = make_dsq(name=band_name, resolution=resolution)
              with pytest.raises(KeyError):
                  _ = get_key(
                      ds_q,
                      available_datasets,
                      num_results=0,
                      best=False,
                  )
  
          ds_q = make_dsq(name=band_name, resolution=resolution_to_test)
          res = get_key(
              ds_q, available_datasets, num_results=0, best=False
          )
          if band_name < "C07":
              assert len(res) == 2
          else:
              assert len(res) == 3
  
imports: import os
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 14 for calling the Test_HDF_AGRI_L1_cal obj's underlying member method code with example usage: obj._assert_which_channels_are_loaded(available_datasets, band_names, resolution_to_test) without return types