class_docstr: Class for testing enhancements in satpy.enhancements.
class_docstr_tok: ["Class","for","testing","enhancements","in","satpy.enhancements","."]
docstr: Create test data used by every test.
code: def setup_method(self):
      """Create test data used by every test."""
      data = np.arange(-210, 790, 100).reshape((2, 5)) * 0.95
      data[0, 0] = np.nan  # one bad value for testing
      crefl_data = np.arange(-210, 790, 100).reshape((2, 5)) * 0.95
      crefl_data /= 5.605
      crefl_data[0, 0] = np.nan  # one bad value for testing
      crefl_data[0, 1] = 0.0
      self.ch1 = xr.DataArray(
          da.from_array(data, chunks=2),
          dims=("y", "x"),
          attrs={"test": "test"},
      )
      self.ch2 = xr.DataArray(
          da.from_array(crefl_data, chunks=2),
          dims=("y", "x"),
          attrs={"test": "test"},
      )
      rgb_data = np.stack([data, data, data])
      self.rgb = xr.DataArray(
          da.from_array(rgb_data, chunks=(3, 2, 2)),
          dims=("bands", "y", "x"),
          coords={"bands": ["R", "G", "B"]},
      )
  
imports: import contextlib
  import os
  from tempfile import NamedTemporaryFile
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.enhancements import create_colormap, on_dask_array, on_separate_bands, using_map_blocks
label_desc: Use image node_id 1 for calling the TestEnhancementStretch obj's underlying member method code with example usage: obj.setup_method() without return types