class_docstr: Test TROPOMI L2 Reader.
class_docstr_tok: ["Test","TROPOMI","L2","Reader","."]
docstr: Load SO2 dataset.
docstr_tok: ["Load","SO2","dataset","."]
code: def test_load_so2(self):
      """Load SO2 dataset."""
      from satpy.readers import load_reader
  
      r = load_reader(self.reader_configs)
      with mock.patch(
          "satpy.readers.tropomi_l2.netCDF4.Variable", xr.DataArray
      ):
          loadables = r.select_files_from_pathnames(
              [
                  "S5P_OFFL_L2__SO2____20181224T055107_20181224T073237_06198_01_010105_20181230T150634.nc",
              ]
          )
          r.create_filehandlers(loadables)
      ds = r.load(["sulfurdioxide_total_vertical_column"])
      assert len(ds) == 1
      for d in ds.values():
          assert d.attrs["platform_shortname"] == "S5P"
          assert "area" in d.attrs
          assert d.attrs["area"] is not None
          assert "y" in d.dims
          assert "x" in d.dims
  
file_path: satpy/satpy/tests/reader_tests/test_tropomi_l2.py
imports: import os
  import unittest
  from datetime import datetime, timedelta
  from unittest import mock
  import numpy
  import xarray
  from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
label_desc: Use image node_id 5 for calling the TestTROPOMIL2Reader obj's underlying member method code with example usage: obj.test_load_so2() without return types