class_docstr: Test fake binary header defined at top of module
class_docstr_tok: ["Test","fake","binary","header","defined","at","top","of","module"]
code: def test_checks(self):
      # Test header checks
      hdr_t = self.header_class()
      # _dxer just returns the diagnostics as a string
      # Default hdr is OK
      assert self._dxer(hdr_t) == ""
      # An integer should be 1
      hdr = hdr_t.copy()
      hdr["an_integer"] = 2
      assert self._dxer(hdr) == "an_integer should be 1"
      # String should be lower case
      hdr = hdr_t.copy()
      hdr["a_str"] = "My Name"
      assert self._dxer(hdr) == "a_str should be lower case"
  
imports: import logging
  from io import BytesIO, StringIO
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ..None import imageglobals
  from ..batteryrunners import Report
  from ..casting import sctypes
  from ..spatialimages import HeaderDataError
  from ..volumeutils import Recoder, native_code, swapped_code
  from ..wrapstruct import LabeledWrapStruct, WrapStruct, WrapStructError
label_desc: Use image node_id 7 for calling the TestMyWrapStruct obj's underlying member method code with example usage: obj.test_checks() without return types