class_docstr: Test TestRecarray2Dict.
docstr: Test function for TestRecarray2Dict and mpef product header.
docstr_tok: ["Test","function","for","TestRecarray2Dict","and","mpef","product","header","."]
code: def test_mpef_product_header(self):
      """Test function for TestRecarray2Dict and mpef product header."""
      names = [
          "ImageLocation",
          "GsicsCalMode",
          "GsicsCalValidity",
          "Padding",
          "OffsetToData",
          "Padding2",
      ]
      mpef_header = np.dtype(
          [
              (name, mpef_product_header.fields[name][0])
              for name in names
          ]
      )
      mph_struct = np.array(
          [("OPE", True, False, "XX", 1000, "12345678")],
          dtype=mpef_header,
      )
      test_mph = {
          "ImageLocation": "OPE",
          "GsicsCalMode": True,
          "GsicsCalValidity": False,
          "Padding": "XX",
          "OffsetToData": 1000,
          "Padding2": "12345678",
      }
      assert recarray2dict(mph_struct) == test_mph
  
imports: import unittest
  from datetime import datetime
  import numpy
  from satpy.readers.eum_base import get_service_mode, recarray2dict, time_cds, time_cds_expanded, time_cds_short, timecds2datetime
  from satpy.readers.seviri_base import mpef_product_header
label_desc: Use image node_id 2 for calling the TestRecarray2Dict obj's underlying member method code with example usage: obj.test_mpef_product_header() without return types