class_docstr: Main test class for the LI L2 reader.
class_docstr_tok: ["Main","test","class","for","the","LI","L2","reader","."]
docstr: Generate file handler and mimic coordinate generator call.
docstr_tok: ["Generate","file","handler","and","mimic","coordinate","generator","call","."]
code: def generate_coords(
      self, filetype_infos, file_type_name, variable_name
  ):
      """Generate file handler and mimic coordinate generator call."""
      handler = LIL2NCFileHandler(
          "filename",
          {},
          extract_filetype_info(filetype_infos, file_type_name),
      )
      dsid = make_dataid(name=variable_name)
      handler.generate_coords_from_scan_angles = mock.MagicMock(
          side_effect=handler.generate_coords_from_scan_angles
      )
      handler.get_dataset(dsid)
      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 29 for calling the TestLIL2 obj's underlying member method code with example usage: obj.generate_coords(filetype_infos, file_type_name, variable_name) and returns: handler