class_docstr: Class for testing enhancements in satpy.enhancements.
class_docstr_tok: ["Class","for","testing","enhancements","in","satpy.enhancements","."]
docstr: Test the lookup enhancement function.
code: def test_lookup(self):
      """Test the lookup enhancement function."""
      from satpy.enhancements import lookup
  
      expected = np.array(
          [
              [
                  [0.0, 0.0, 0.0, 0.333333, 0.705882],
                  [1.0, 1.0, 1.0, 1.0, 1.0],
              ]
          ]
      )
      lut = np.arange(256.0)
      run_and_check_enhancement(lookup, self.ch1, expected, luts=lut)
  
      expected = np.array(
          [
              [
                  [0.0, 0.0, 0.0, 0.333333, 0.705882],
                  [1.0, 1.0, 1.0, 1.0, 1.0],
              ],
              [
                  [0.0, 0.0, 0.0, 0.333333, 0.705882],
                  [1.0, 1.0, 1.0, 1.0, 1.0],
              ],
              [
                  [0.0, 0.0, 0.0, 0.333333, 0.705882],
                  [1.0, 1.0, 1.0, 1.0, 1.0],
              ],
          ]
      )
      lut = np.arange(256.0)
      lut = np.vstack((lut, lut, lut)).T
      run_and_check_enhancement(lookup, self.rgb, expected, luts=lut)
  
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 5 for calling the TestEnhancementStretch obj's underlying member method code with example usage: obj.test_lookup() without return types