class_docstr: Test MODIS L2 reader.
class_docstr_tok: ["Test","MODIS","L2","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."""
      from .test_modis_l1b import _load_and_check_geolocation
  
      scene = Scene(reader="modis_l2", 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)
      with dask.config.set(
          scheduler=CustomScheduler(
              max_computes=1 + has_5km + has_500 + has_250
          )
      ):
          _load_and_check_geolocation(
              scene,
              "*",
              default_res,
              default_shape,
              True,
              check_callback=_check_shared_metadata,
          )
          _load_and_check_geolocation(
              scene,
              5000,
              5000,
              shape_5km,
              has_5km,
              check_callback=_check_shared_metadata,
          )
          _load_and_check_geolocation(
              scene,
              500,
              500,
              shape_500m,
              has_500,
              check_callback=_check_shared_metadata,
          )
          _load_and_check_geolocation(
              scene,
              250,
              250,
              shape_250m,
              has_250,
              check_callback=_check_shared_metadata,
          )
  
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 3 for calling the TestModisL2 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