code: def create_cot_pal_variable(nc_file, var_name):
      """Create a palette variable."""
      var = nc_file.create_variable(
          var_name, ("pal_colors_250", "pal_rgb"), np.uint8
      )
      var[:] = PAL_ARRAY
      var.attrs["palette_meanings"] = COT_PALETTE_MEANINGS
  
imports: import h5netcdf
  import numpy
  import pytest
  import xarray
  from satpy.readers.nwcsaf_nc import NcNWCSAF, read_nwcsaf_time
label_desc: Use image node_id 13 for calling a global function with example usage: create_cot_pal_variable(nc_file, var_name) without return types