class_docstr: Main test class for the LI L2 reader.
class_docstr_tok: ["Main","test","class","for","the","LI","L2","reader","."]
docstr: Wrap NetCDF4 FileHandler with our own fake handler.
docstr_tok: ["Wrap","NetCDF4","FileHandler","with","our","own","fake","handler","."]
code: def fake_handler(self):
      """Wrap NetCDF4 FileHandler with our own fake handler."""
      patch_ctx = mock.patch.object(
          LINCFileHandler, "__bases__", (FakeLIFileHandlerBase,)
      )
  
      with patch_ctx:
          patch_ctx.is_local = True
          yield patch_ctx
  
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 1 for calling the TestLIL2 obj's underlying member method code with example usage: obj.fake_handler() without return types