code: def fake_test_content(filename, **kwargs):
      """Mimic reader input file content."""
      attrs = {
          "platform": "HIM8",
          "sensor": "AHI",
          # this is a Level 2 file that came from a L1B file
          "L1B": "clavrx_H08_20210603_1500_B01_FLDK_R",
      }
  
      longitude = xr.DataArray(
          DEFAULT_LON_DATA,
          dims=(
              "scan_lines_along_track_direction",
              "pixel_elements_along_scan_direction",
          ),
          attrs={
              "_FillValue": np.nan,
              "scale_factor": 1.0,
              "add_offset": 0.0,
              "standard_name": "longitude",
              "units": "degrees_east",
          },
      )
  
      latitude = xr.DataArray(
          DEFAULT_LAT_DATA,
          dims=(
              "scan_lines_along_track_direction",
              "pixel_elements_along_scan_direction",
          ),
          attrs={
              "_FillValue": np.nan,
              "scale_factor": 1.0,
              "add_offset": 0.0,
              "standard_name": "latitude",
              "units": "degrees_south",
          },
      )
  
      variable1 = xr.DataArray(
          DEFAULT_FILE_DATA.astype(np.float32),
          dims=(
              "scan_lines_along_track_direction",
              "pixel_elements_along_scan_direction",
          ),
          attrs={
              "_FillValue": np.nan,
              "scale_factor": 1.0,
              "add_offset": 0.0,
              "units": "1",
              "valid_range": [-32767, 32767],
          },
      )
  
      # data with fill values
      variable2 = xr.DataArray(
          DEFAULT_FILE_DATA.astype(np.float32),
          dims=(
              "scan_lines_along_track_direction",
              "pixel_elements_along_scan_direction",
          ),
          attrs={
              "_FillValue": np.nan,
              "scale_factor": 1.0,
              "add_offset": 0.0,
              "units": "1",
              "valid_range": [-32767, 32767],
          },
      )
      variable2 = variable2.where(variable2 % 2 != 0)
  
      # category
      variable3 = xr.DataArray(
          DEFAULT_FILE_FLAGS,
          dims=(
              "scan_lines_along_track_direction",
              "pixel_elements_along_scan_direction",
          ),
          attrs={
              "SCALED": 0,
              "_FillValue": -127,
              "units": "1",
              "flag_values": [0, 1, 2, 3],
          },
      )
  
      ds_vars = {
          "longitude": longitude,
          "latitude": latitude,
          "variable1": variable1,
          "variable2": variable2,
          "variable3": variable3,
      }
  
      ds = xr.Dataset(ds_vars, attrs=attrs)
      ds = ds.assign_coords(
          {"latitude": latitude, "longitude": longitude}
      )
  
      return ds
  
file_path: satpy/satpy/tests/reader_tests/test_clavrx_nc.py
imports: import os
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
label_desc: Use image node_id 1 for calling a global function with example usage: fake_test_content(filename) and returns: ds