class_docstr: Class for testing enhancements in satpy.enhancements.
class_docstr_tok: ["Class","for","testing","enhancements","in","satpy.enhancements","."]
docstr: Test the reinhard algorithm.
code: def test_reinhard(self):
      """Test the reinhard algorithm."""
      from satpy.enhancements import reinhard_to_srgb
  
      expected = np.array(
          [
              [
                  [np.nan, 0.0, 0.0, 0.93333793, 1.29432402],
                  [
                      1.55428709,
                      1.76572249,
                      1.94738635,
                      2.10848544,
                      2.25432809,
                  ],
              ],
              [
                  [np.nan, 0.0, 0.0, 0.93333793, 1.29432402],
                  [
                      1.55428709,
                      1.76572249,
                      1.94738635,
                      2.10848544,
                      2.25432809,
                  ],
              ],
              [
                  [np.nan, 0.0, 0.0, 0.93333793, 1.29432402],
                  [
                      1.55428709,
                      1.76572249,
                      1.94738635,
                      2.10848544,
                      2.25432809,
                  ],
              ],
          ]
      )
      run_and_check_enhancement(reinhard_to_srgb, self.rgb, expected)
  
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 4 for calling the TestEnhancementStretch obj's underlying member method code with example usage: obj.test_reinhard() without return types