class_docstr: Main test class for the LI L2 reader.
class_docstr_tok: ["Main","test","class","for","the","LI","L2","reader","."]
docstr: Test available_datasets from li reader.
docstr_tok: ["Test","available_datasets","from","li","reader","."]
code: def test_available_datasets(self, filetype_infos):
      """Test available_datasets from li reader."""
      handler = LIL2NCFileHandler(
          "filename",
          {},
          extract_filetype_info(filetype_infos, "li_l2_lef_nc"),
      )
  
      # get current ds_infos. These should all be returned by the available_datasets
      ds_infos_to_compare = handler.dataset_infos.copy()
  
      # now add a dummy configured dataset to make sure that it is included in the available_datasets output
      ds_info_dummy = {"test": "test"}
      conf_ds_dummy = [(True, ds_info_dummy)]
      ds_infos_to_compare.insert(0, ds_info_dummy)
  
      assert ds_infos_to_compare == [
          ds[1]
          for ds in handler.available_datasets(
              configured_datasets=conf_ds_dummy
          )
      ]
  
imports: import os
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyproj import Proj
  from satpy._config import config_search_paths
  from satpy.readers.li_base_nc import LINCFileHandler
  from satpy.readers.li_l2_nc import LI_GRID_SHAPE, LIL2NCFileHandler
  from satpy.readers.yaml_reader import load_yaml_configs
  from satpy.tests.reader_tests._li_test_utils import FakeLIFileHandlerBase, extract_filetype_info, get_product_schema, products_dict
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 16 for calling the TestLIL2 obj's underlying member method code with example usage: obj.test_available_datasets(filetype_infos) without return types