code: def _adjust_kwargs(dataset, kwargs):
      if "platform_name" not in kwargs:
          kwargs["platform_name"] = dataset.attrs["platform_name"]
      if "name" not in kwargs:
          kwargs["name"] = dataset.attrs["name"]
      if "start_time" not in kwargs:
          kwargs["start_time"] = dataset.attrs["start_time"]
      if "sensor" not in kwargs:
          kwargs["sensor"] = dataset.attrs["sensor"]
      # Sensor attrs could be set. MITIFFs needing to handle sensor can only have one sensor
      # Assume the first value of set as the sensor.
      if isinstance(kwargs["sensor"], set):
          LOG.warning(
              "Sensor is set, will use the first value: %s",
              kwargs["sensor"],
          )
          kwargs["sensor"] = (list(kwargs["sensor"]))[0]
  
imports: import logging
  import os
  import dask
  import numpy
  from PIL import Image, ImagePalette
  from satpy.dataset import DataID, DataQuery
  from satpy.writers import ImageWriter, get_enhanced_image
label_desc: Use image node_id 1 for calling a global function with example usage: _adjust_kwargs(dataset, kwargs) without return types