class_docstr: An example wrapped struct class
class_docstr_tok: ["An","example","wrapped","struct","class"]
code: def _chk_integer(hdr, fix=False):
      rep = Report(HeaderDataError)
      if hdr["an_integer"] == 1:
          return hdr, rep
      rep.problem_level = 40
      rep.problem_msg = "an_integer should be 1"
      if fix:
          hdr["an_integer"] = 1
          rep.fix_msg = "set an_integer to 1"
      return hdr, rep
  
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 4 for calling the MyWrapStruct obj's underlying member method code with example usage: obj._chk_integer(hdr, fix) and returns: hdr,  rep, hdr,  rep