class_docstr: The implement of DialogReader.
code: def _read_file(self, input_file, phase, is_infer):
      def __wrapper__():
          with open_file(input_file) as fp:
              if self.data_format == "numerical":
                  records = self._read_numerical_file(fp)
              else:
                  records = self._read_tsv(fp, phase, is_infer)
              for record in records:
                  yield record
  
      return __wrapper__
  
imports: import csv
  from collections import namedtuple
  from contextlib import contextmanager
  import gzip
  import numpy
  from ..utils import pad_batch_data
  from ..utils.args import str2bool
  from ..utils.masking import mask
  from ..utils import tokenization
label_desc: Use image node_id 7 for calling the DialogReader obj's underlying member method code with example usage: obj._read_file(input_file, phase, is_infer) and returns: __wrapper__