class_docstr: Test MODIS L1b reader.
class_docstr_tok: ["Test","MODIS","L1b","reader","."]
docstr: Test loading visible band.
docstr_tok: ["Test","loading","visible","band","."]
code: def test_load_vis(self, modis_l1b_nasa_mod021km_file):
      """Test loading visible band."""
      scene = Scene(
          reader="modis_l1b", filenames=modis_l1b_nasa_mod021km_file
      )
      dataset_name = "1"
      with dask.config.set({"array.chunk-size": "1 MiB"}):
          scene.load([dataset_name])
      dataset = scene[dataset_name]
      assert dataset[0, 0] == 300.0
      assert dataset.shape == _shape_for_resolution(1000)
      assert dataset.attrs["resolution"] == 1000
      _check_shared_metadata(dataset)
  
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 5 for calling the TestModisL1b obj's underlying member method code with example usage: obj.test_load_vis(modis_l1b_nasa_mod021km_file) without return types