code: def fake_file_dict(fake_dataset, tmp_path):
      """Write a fake dataset to file."""
      fdict = {}
      filename = (
          tmp_path
          / "ESACCI-OC-L3S-OC_PRODUCTS-MERGED-10M_MONTHLY_4km_GEO_PML_OCx_QAA-202112-fv5.0.nc"
      )
      fake_dataset.to_netcdf(filename)
      fdict["bad_month"] = filename
  
      filename = (
          tmp_path
          / "ESACCI-OC-L3S-OC_PRODUCTS-MERGED-2D_DAILY_4km_GEO_PML_OCx_QAA-202112-fv5.0.nc"
      )
      fake_dataset.to_netcdf(filename)
      fdict["bad_day"] = filename
  
      filename = (
          tmp_path
          / "ESACCI-OC-L3S-OC_PRODUCTS-MERGED-1M_MONTHLY_4km_GEO_PML_OCx_QAA-202112-fv5.0.nc"
      )
      fake_dataset.to_netcdf(filename)
      fdict["ocprod_1m"] = filename
  
      filename = (
          tmp_path
          / "ESACCI-OC-L3S-OC_PRODUCTS-MERGED-5D_DAILY_4km_GEO_PML_OCx_QAA-202112-fv5.0.nc"
      )
      fake_dataset.to_netcdf(filename)
      fdict["ocprod_5d"] = filename
  
      filename = (
          tmp_path
          / "ESACCI-OC-L3S-IOP-MERGED-8D_DAILY_4km_GEO_PML_RRS-20211117-fv5.0.nc"
      )
      fake_dataset.to_netcdf(filename)
      fdict["iop_8d"] = filename
  
      filename = (
          tmp_path
          / "ESACCI-OC-L3S-IOP-MERGED-1D_DAILY_4km_GEO_PML_OCx-202112-fv5.0.nc"
      )
      fake_dataset.to_netcdf(filename)
      fdict["iop_1d"] = filename
  
      filename = (
          tmp_path
          / "ESACCI-OC-L3S-K_490-MERGED-1D_DAILY_4km_GEO_PML_RRS-20210113-fv5.0.nc"
      )
      fake_dataset.to_netcdf(filename)
      fdict["k490_1d"] = filename
  
      return fdict
  
imports: import os
  from datetime import datetime
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
label_desc: Use image node_id 2 for calling a global function with example usage: fake_file_dict(fake_dataset, tmp_path) and returns: fdict