class_docstr: Main test class for the LI L2 reader.
class_docstr_tok: ["Main","test","class","for","the","LI","L2","reader","."]
docstr: Create handler with area definition.
docstr_tok: ["Create","handler","with","area","definition","."]
code: def handler_with_area(self, filetype_infos, product_name):
      """Create handler with area definition."""
      # Note: we need a test param provider here to ensure we write the same values for both handlers below:
      FakeLIFileHandlerBase.schema_parameters = TestLIL2.param_provider
      # with area definition
      handler = LIL2NCFileHandler(
          "filename",
          {},
          extract_filetype_info(filetype_infos, product_name),
          with_area_definition=True,
      )
      return handler
  
imports: import os
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyproj import Proj
  from satpy._config import config_search_paths
  from satpy.readers.li_base_nc import LINCFileHandler
  from satpy.readers.li_l2_nc import LI_GRID_SHAPE, LIL2NCFileHandler
  from satpy.readers.yaml_reader import load_yaml_configs
  from satpy.tests.reader_tests._li_test_utils import FakeLIFileHandlerBase, extract_filetype_info, get_product_schema, products_dict
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 41 for calling the TestLIL2 obj's underlying member method code with example usage: obj.handler_with_area(filetype_infos, product_name) and returns: handler