class_docstr: NSP Reader.
code: def _convert_example_to_record(self, example, is_infer):
      record = super(NSPReader, self)._convert_example_to_record(
          example, False
      )
      if "label" in example._fields:
          record = record._replace(label=int(example.label))
      return record
  
file_path: PaddleHub/modules/text/text_generation/plato2_en_base/readers/nsp_reader.py
imports: from collections import namedtuple
  import numpy
  from .dialog_reader import DialogReader
  from ..utils import pad_batch_data
  from ..utils.args import str2bool
  from ..utils.masking import mask
label_desc: Use image node_id 3 for calling the NSPReader obj's underlying member method code with example usage: obj._convert_example_to_record(example, is_infer) and returns: record