code: def parse_resource(library, session, resource_name):
      
      interface_type = ViUInt16()
      interface_board_number = ViUInt16()
  
      # [ViSession, ViRsrc, ViPUInt16, ViPUInt16]
      # ViRsrc converts from (str, unicode, bytes) to bytes
      ret = library.viParseRsrc(session, resource_name, byref(interface_type),
                                byref(interface_board_number))
      return ResourceInfo(constants.InterfaceType(interface_type.value),
                          interface_board_number.value,
                          None, None, None), ret
docs: Parse a resource string to get the interface information.
  
      Corresponds to viParseRsrc function of the VISA library.
  
      :param library: the visa library wrapped by ctypes.
      :param session: Resource Manager session (should always be the Default Resource Manager for VISA
                      returned from open_default_resource_manager()).
      :param resource_name: Unique symbolic name of a resource.
      :return: Resource information with interface type and board number, return value of the library call.
      :rtype: :class:`pyvisa.highlevel.ResourceInfo`, :class:`pyvisa.constants.StatusCode`