code: def fake_dnb_file(fake_dnb, tmp_path):
      """Create an hdf5 file in viirs_compact format with DNB data in it."""
      filename = (
          tmp_path
          / "SVDNBC_j01_d20191025_t0611251_e0612478_b10015_c20191025062459000870_eum_ops.h5"
      )
      h5f = h5py.File(filename, mode="w")
  
      fill_h5(h5f, fake_dnb)
      for attr, val in fake_dnb["attrs"].items():
          h5f.attrs[attr] = val
      h5f.close()
      return filename
  
file_path: satpy/satpy/tests/reader_tests/test_viirs_compact.py
imports: from contextlib import suppress
  import h5py
  import numpy
  import pytest
  from satpy.tests.reader_tests.utils import fill_h5
label_desc: Use image node_id 2 for calling a global function with example usage: fake_dnb_file(fake_dnb, tmp_path) and returns: filename