class_docstr: A WrapStruct with some fields having value labels for printing etc
class_docstr_tok: ["A","WrapStruct","with","some","fields","having","value","labels","for","printing","etc"]
docstr: Return string representation for printing
docstr_tok: ["Return","string","representation","for","printing"]
code: def __str__(self):
      """Return string representation for printing"""
      summary = f"{self.__class__} object, endian='{self.endianness}'"
  
      def _getter(obj, key):
          try:
              return obj.get_value_label(key)
          except ValueError:
              return obj[key]
  
      return "\n".join([summary, pretty_mapping(self, _getter)])
  
imports: from __future__ import annotations
  import numpy
  from .None import imageglobals
  from .batteryrunners import BatteryRunner
  from .volumeutils import Recoder, endian_codes, native_code, pretty_mapping, swapped_code
label_desc: Use image node_id 2 for calling the LabeledWrapStruct obj's underlying member method code with example usage: obj.__str__() and returns: str, obj, obj