class_docstr: Test MODIS L1b reader.
class_docstr_tok: ["Test","MODIS","L1b","reader","."]
docstr: Test that longitude and latitude datasets are loaded correctly.
docstr_tok: ["Test","that","longitude","and","latitude","datasets","are","loaded","correctly","."]
code: def test_load_longitude_latitude(
      self, input_files, has_5km, has_500, has_250, default_res
  ):
      """Test that longitude and latitude datasets are loaded correctly."""
      scene = Scene(reader="modis_l1b", filenames=input_files)
      shape_5km = _shape_for_resolution(5000)
      shape_500m = _shape_for_resolution(500)
      shape_250m = _shape_for_resolution(250)
      default_shape = _shape_for_resolution(default_res)
      scheduler = CustomScheduler(
          max_computes=1 + has_5km + has_500 + has_250
      )
      with dask.config.set(
          {"scheduler": scheduler, "array.chunk-size": "1 MiB"}
      ):
          _load_and_check_geolocation(
              scene, "*", default_res, default_shape, True
          )
          _load_and_check_geolocation(
              scene, 5000, 5000, shape_5km, has_5km
          )
          _load_and_check_geolocation(
              scene, 500, 500, shape_500m, has_500
          )
          _load_and_check_geolocation(
              scene, 250, 250, shape_250m, has_250
          )
  
file_path: satpy/satpy/tests/reader_tests/modis_tests/test_modis_l1b.py
imports: from __future__ import annotations
  import dask
  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 AVAILABLE_1KM_PRODUCT_NAMES, AVAILABLE_HKM_PRODUCT_NAMES, AVAILABLE_QKM_PRODUCT_NAMES, _shape_for_resolution
label_desc: Use image node_id 3 for calling the TestModisL1b obj's underlying member method code with example usage: obj.test_load_longitude_latitude(input_files, has_5km, has_500, has_250, default_res) without return types