class_docstr: Main test class for the LI L2 reader.
class_docstr_tok: ["Main","test","class","for","the","LI","L2","reader","."]
docstr: Check the validity of a given sector variable.
docstr_tok: ["Check","the","validity","of","a","given","sector","variable","."]
code: def _test_dataset_single_sector_variable(
      self, names, desc, settings, handler
  ):
      """Check the validity of a given sector variable."""
      sname, vname = names[0], names[1]
  
      dname = f"{vname}_{sname}_sector"
  
      dims = settings.get("dimensions", {})
  
      var_path = settings.get("variable_path", "")
  
      shape = tuple([dims[dim_name] for dim_name in desc["shape"]])
  
      dataset_info = {
          "name": dname,
          "variable_name": vname,
          "sector_name": sname,
          "use_rescaling": False,
      }
      var_params = [dataset_info, desc, vname, handler, shape, var_path]
      self._test_dataset_variable(var_params, sname=sname)
  
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 4 for calling the TestLIL2 obj's underlying member method code with example usage: obj._test_dataset_single_sector_variable(names, desc, settings, handler) without return types