code: def separate_init_kwargs(cls, kwargs):
          
          # FUTURE: Don't pass Scene.save_datasets kwargs to init and here
          init_kwargs = {}
          kwargs = kwargs.copy()
          for kw in ['base_dir', 'filename', 'file_pattern']:
              if kw in kwargs:
                  init_kwargs[kw] = kwargs.pop(kw)
          return init_kwargs, kwargs
docs: Helper class method to separate arguments between init and save methods.
  
          Currently the :class:`~satpy.scene.Scene` is passed one set of
          arguments to represent the Writer creation and saving steps. This is
          not preferred for Writer structure, but provides a simpler interface
          to users. This method splits the provided keyword arguments between
          those needed for initialization and those needed for the ``save_dataset``
          and ``save_datasets`` method calls.
  
          Writer subclasses should try to prefer keyword arguments only for the
          save methods only and leave the init keyword arguments to the base
          classes when possible.