code: def fake_file(fake_dataset, encoding, tmp_path):
      """Write a fake dataset to file."""
      filename = tmp_path / "CPPin20140101001500305SVMSG01MD.nc"
      fake_dataset.to_netcdf(filename, encoding=encoding)
      return filename
  
imports: import datetime
  import os
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 5 for calling a global function with example usage: fake_file(fake_dataset, encoding, tmp_path) and returns: filename