class_docstr: Act as a compositor that produces fake RGB data.
class_docstr_tok: ["Act","as","a","compositor","that","produces","fake","RGB","data","."]
docstr: Produce test compositor data depending on modifiers and input data provided.
docstr_tok: ["Produce","test","compositor","data","depending","on","modifiers","and","input","data","provided","."]
code: def __call__(self, projectables, nonprojectables=None, **kwargs):
      """Produce test compositor data depending on modifiers and input data provided."""
      if projectables:
          projectables = self.match_data_arrays(projectables)
      if nonprojectables:
          self.match_data_arrays(nonprojectables)
      info = self.attrs.copy()
      if self.attrs["name"] in ("comp14", "comp26"):
          # used as a test when composites update the dataset id with
          # information from prereqs
          info["resolution"] = 555
      if self.attrs["name"] in ("comp24", "comp25"):
          # other composites that copy the resolution from inputs
          info["resolution"] = projectables[0].attrs.get("resolution")
      if len(projectables) != len(self.attrs["prerequisites"]):
          raise ValueError("Not enough prerequisite datasets passed")
  
      info.update(kwargs)
      if projectables:
          info["area"] = projectables[0].attrs["area"]
          dim_sizes = projectables[0].sizes
      else:
          # static_image
          dim_sizes = {"y": 4, "x": 5}
      return DataArray(
          data=da.zeros((dim_sizes["y"], dim_sizes["x"], 3)),
          attrs=info,
          dims=["y", "x", "bands"],
          coords={"bands": ["R", "G", "B"]},
      )
  
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 FakeCompositor obj's underlying member method code with example usage: obj.__call__(projectables, nonprojectables) and returns: DataArray