code: def _create_reader_for_fake_data(
      observation_type: str,
      fake_dataset: xr.Dataset,
      filename_info: Optional[dict] = None,
  ):
      from satpy.readers.abi_l2_nc import NC_ABI_L2
  
      if filename_info is None:
          filename_info = {
              "platform_shortname": "G16",
              "scene_abbr": "C",
              "scan_mode": "M3",
          }
      reader_args = (
          "filename",
          filename_info,
          {"file_type": "info", "observation_type": observation_type},
      )
      with mock.patch("satpy.readers.abi_base.xr") as xr_:
          xr_.open_dataset.return_value = fake_dataset
          reader = NC_ABI_L2(*reader_args)
          yield reader
  
imports: import contextlib
  from typing import Optional
  from unittest import mock
  import numpy
  import pytest
  import xarray
label_desc: Use image node_id 5 for calling a global function with example usage: _create_reader_for_fake_data(observation_type, fake_dataset, filename_info) without return types