class_docstr: Act as a modifier that performs different modifications.
class_docstr_tok: ["Act","as","a","modifier","that","performs","different","modifications","."]
code: def _handle_res_change(self, datasets, info):
      # assume this is used on the 500m version of ds5
      info["resolution"] = 250
      rep_data_arr = datasets[0]
      y_size = rep_data_arr.sizes["y"]
      x_size = rep_data_arr.sizes["x"]
      data = da.zeros((y_size * 2, x_size * 2))
      if isinstance(rep_data_arr.attrs["area"], SwathDefinition):
          area = _swath_def_of_data_arrays(y_size * 2, x_size * 2)
          info["area"] = area
      else:
          raise NotImplementedError(
              "'res_change' modifier can't handle "
              "AreaDefinition changes yet."
          )
      return data
  
imports: from contextlib import contextmanager
  from datetime import datetime
  from typing import Any
  from unittest import mock
  import dask.array
  import numpy
  from pyresample import create_area_def
  from pyresample.geometry import BaseDefinition, SwathDefinition
  from xarray import DataArray
  from satpy import Scene
  from satpy.composites import GenericCompositor, IncompatibleAreas
  from satpy.dataset import DataID, DataQuery
  from satpy.dataset.dataid import default_id_keys_config, minimal_default_keys_config
  from satpy.modifiers import ModifierBase
  from satpy.readers.file_handlers import BaseFileHandler
label_desc: Use image node_id 1 for calling the FakeModifier obj's underlying member method code with example usage: obj._handle_res_change(datasets, info) and returns: data