class_docstr: Test the AHI enhancement functions.
class_docstr_tok: ["Test","the","AHI","enhancement","functions","."]
docstr: Test the jma_true_color_reproduction enhancement.
code: def test_jma_true_color_reproduction(self):
      """Test the jma_true_color_reproduction enhancement."""
      from trollimage.xrimage import XRImage
  
      from satpy.enhancements import jma_true_color_reproduction
  
      expected = [
          [
              [-109.93, 10.993, 131.916, 252.839, 373.762],
              [494.685, 615.608, 736.531, 857.454, 978.377],
          ],
          [
              [-97.73, 9.773, 117.276, 224.779, 332.282],
              [439.785, 547.288, 654.791, 762.294, 869.797],
          ],
          [
              [-93.29, 9.329, 111.948, 214.567, 317.186],
              [419.805, 522.424, 625.043, 727.662, 830.281],
          ],
      ]
  
      img = XRImage(self.rgb)
      jma_true_color_reproduction(img)
  
      np.testing.assert_almost_equal(img.data.compute(), expected)
  
      self.rgb.attrs["platform_name"] = None
      img = XRImage(self.rgb)
      with pytest.raises(ValueError, match="Missing platform name."):
          jma_true_color_reproduction(img)
  
      self.rgb.attrs["platform_name"] = "Fakesat"
      img = XRImage(self.rgb)
      with pytest.raises(
          KeyError,
          match="No conversion matrix found for platform Fakesat",
      ):
          jma_true_color_reproduction(img)
  
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 2 for calling the TestTCREnhancement obj's underlying member method code with example usage: obj.test_jma_true_color_reproduction() without return types