class_docstr: Tests for the GAASP reader.
class_docstr_tok: ["Tests","for","the","GAASP","reader","."]
code: def _check_area(data_id, data_arr):
      from pyresample.geometry import AreaDefinition, SwathDefinition
  
      area = data_arr.attrs["area"]
      if (
          "grid_var" in data_id["name"]
          or "latency_var" in data_id["name"]
      ):
          assert isinstance(area, AreaDefinition)
      else:
          assert isinstance(area, SwathDefinition)
  
file_path: satpy/satpy/tests/reader_tests/test_amsr2_l2_gaasp.py
imports: import os
  from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
label_desc: Use image node_id 4 for calling the TestGAASPReader obj's underlying member method code with example usage: obj._check_area(data_id, data_arr) without return types