class_docstr: Test TestRecarray2Dict.
docstr: Test function for TestRecarray2Dict.
docstr_tok: ["Test","function","for","TestRecarray2Dict","."]
code: def test_timestamps(self):
      """Test function for TestRecarray2Dict."""
      # datatype definition
  
      pat_dt = np.dtype(
          [
              ("TrueRepeatCycleStart", time_cds_expanded),
              ("PlanForwardScanEnd", time_cds_expanded),
              ("PlannedRepeatCycleEnd", time_cds_expanded),
          ]
      )
  
      # planned acquisition time, add extra dimensions
      # these should be removed by recarray2dict
      pat = np.array(
          [
              [
                  [
                      (
                          (21916, 41409544, 305, 262),
                          (21916, 42160340, 659, 856),
                          (21916, 42309417, 918, 443),
                      )
                  ]
              ]
          ],
          dtype=pat_dt,
      )
  
      expected = {
          "TrueRepeatCycleStart": datetime(
              2018, 1, 2, 11, 30, 9, 544305
          ),
          "PlanForwardScanEnd": datetime(
              2018, 1, 2, 11, 42, 40, 340660
          ),
          "PlannedRepeatCycleEnd": datetime(
              2018, 1, 2, 11, 45, 9, 417918
          ),
      }
  
      assert recarray2dict(pat) == expected
  
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 1 for calling the TestRecarray2Dict obj's underlying member method code with example usage: obj.test_timestamps() without return types