code: def in_32(library, session, space, offset, extended=False):
      
      value_32 = ViUInt32()
      if extended:
          ret = library.viIn32Ex(session, space, offset, byref(value_32))
      else:
          ret = library.viIn32(session, space, offset, byref(value_32))
      return value_32.value, ret
docs: Reads in an 32-bit value from the specified memory space and offset.
  
      Corresponds to viIn32* function of the VISA library.
  
      :param library: the visa library wrapped by ctypes.
      :param session: Unique logical identifier to a session.
      :param space: Specifies the address space. (Constants.*SPACE*)
      :param offset: Offset (in bytes) of the address or register from which to read.
      :param extended: Use 64 bits offset independent of the platform.
      :return: Data read from memory, return value of the library call.
      :rtype: int, :class:`pyvisa.constants.StatusCode`