class_docstr: Test the HRIT epilogue file handler.
class_docstr_tok: ["Test","the","HRIT","epilogue","file","handler","."]
docstr: Test metadata reduction.
docstr_tok: ["Test","metadata","reduction","."]
code: def test_reduce(self, reduce_mda):
      """Test metadata reduction."""
      reduce_mda.return_value = "reduced"
  
      # Set buffer
      assert self.reader.reduce(123) == "reduced"
      reduce_mda.assert_called()
  
      # Read buffer
      reduce_mda.reset_mock()
      self.reader._reduced = "red"
      assert self.reader.reduce(123) == "red"
      reduce_mda.assert_not_called()
  
imports: import unittest
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from numpy import testing
  from pyproj import CRS
  import satpy.tests.reader_tests.test_seviri_l1b_hrit_setup
  from satpy.readers.seviri_l1b_hrit import HRITMSGEpilogueFileHandler, HRITMSGFileHandler, HRITMSGPrologueFileHandler
  from satpy.tests.reader_tests.test_seviri_base import ORBIT_POLYNOMIALS_INVALID
  from satpy.tests.reader_tests.test_seviri_l1b_calibration import TestFileHandlerCalibrationBase
  from satpy.tests.utils import assert_attrs_equal, make_dataid
label_desc: Use image node_id 3 for calling the TestHRITMSGEpilogueFileHandler obj's underlying member method code with example usage: obj.test_reduce(reduce_mda) without return types