class_docstr: Fake file handler to be used by test readers.
class_docstr_tok: ["Fake","file","handler","to","be","used","by","test","readers","."]
docstr: Get fake DataArray for testing.
docstr_tok: ["Get","fake","DataArray","for","testing","."]
code: def get_dataset(self, data_id: DataID, ds_info: dict):
      """Get fake DataArray for testing."""
      if data_id["name"] == "ds9_fail_load":
          raise KeyError(
              "Can't load '{}' because it is supposed to "
              "fail.".format(data_id["name"])
          )
      attrs = data_id.to_dict()
      attrs.update(ds_info)
      attrs["sensor"] = self.filetype_info.get("sensor", "fake_sensor")
      attrs["platform_name"] = "fake_platform"
      attrs["start_time"] = self.start_time
      attrs["end_time"] = self.end_time
      res = attrs.get("resolution", 250)
      rows = cols = {
          250: 20,
          500: 10,
          1000: 5,
      }.get(res, 5)
      return DataArray(
          data=da.zeros((rows, cols)), attrs=attrs, dims=["y", "x"]
      )
  
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 5 for calling the FakeFileHandler obj's underlying member method code with example usage: obj.get_dataset(data_id, ds_info) and returns: DataArray