class_docstr: Test MODIS L2 reader.
class_docstr_tok: ["Test","MODIS","L2","reader","."]
docstr: Load and check an L2 variable.
docstr_tok: ["Load","and","check","an","L2","variable","."]
code: def test_load_l2_dataset(
      self, input_files, loadables, exp_resolution, exp_area, exp_value
  ):
      """Load and check an L2 variable."""
      scene = Scene(reader="modis_l2", filenames=input_files)
      scene.load(loadables)
      for ds_name in loadables:
          assert ds_name in scene
          data_arr = scene[ds_name]
          assert isinstance(data_arr.data, da.Array)
          data_arr = data_arr.compute()
          assert data_arr.values[0, 0] == exp_value
          assert data_arr.shape == _shape_for_resolution(exp_resolution)
          assert data_arr.attrs.get("resolution") == exp_resolution
          _check_shared_metadata(data_arr, expect_area=exp_area)
  
file_path: satpy/satpy/tests/reader_tests/modis_tests/test_modis_l2.py
imports: from __future__ import annotations
  import dask
  import dask.array
  import numpy
  import pytest
  from pytest_lazyfixture import lazy_fixture
  from satpy import Scene, available_readers
  from satpy.tests.utils import CustomScheduler, make_dataid
  from ._modis_fixtures import _shape_for_resolution
label_desc: Use image node_id 7 for calling the TestModisL2 obj's underlying member method code with example usage: obj.test_load_l2_dataset(input_files, loadables, exp_resolution, exp_area, exp_value) without return types