code: def closed_named_temp_file(**kwargs):
      """Named temporary file context manager that closes the file after creation.
  
      This helps with Windows systems which can get upset with opening or
      deleting a file that is already open.
  
      """
      try:
          with NamedTemporaryFile(delete=False, **kwargs) as tmp_cmap:
              yield tmp_cmap.name
      finally:
          os.remove(tmp_cmap.name)
  
imports: import contextlib
  import os
  from tempfile import NamedTemporaryFile
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.enhancements import create_colormap, on_dask_array, on_separate_bands, using_map_blocks
label_desc: Use image node_id 3 for calling a global function with example usage: closed_named_temp_file() without return types