class_docstr: Test MODIS L2 reader.
class_docstr_tok: ["Test","MODIS","L2","reader","."]
docstr: Test loading 250m cloud mask.
docstr_tok: ["Test","loading","250m","cloud","mask","."]
code: def test_load_250m_cloud_mask_dataset(self, input_files, exp_area):
      """Test loading 250m cloud mask."""
      scene = Scene(reader="modis_l2", filenames=input_files)
      dataset_name = "cloud_mask"
      scene.load([dataset_name], resolution=250)
      cloud_mask_id = make_dataid(name=dataset_name, resolution=250)
      assert cloud_mask_id in scene
      cloud_mask = scene[cloud_mask_id]
      assert isinstance(cloud_mask.data, da.Array)
      cloud_mask = cloud_mask.compute()
      assert cloud_mask.shape == _shape_for_resolution(250)
      assert cloud_mask.values[0, 0] == 0.0
      # mask variables should be integers
      assert np.issubdtype(cloud_mask.dtype, np.integer)
      assert cloud_mask.attrs.get("_FillValue") is not None
      _check_shared_metadata(cloud_mask, 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 6 for calling the TestModisL2 obj's underlying member method code with example usage: obj.test_load_250m_cloud_mask_dataset(input_files, exp_area) without return types