code: def getwritervalues(self):
      l = len(self)
      values = [self._name, l]
  
      if l:
          values.append(self.datetime.datetime(0))
          for line in self.LineOrder[1:]:
              values.append(self.lines[line][0])
          for i in range(len(self.LineOrder), self.lines.size()):
              values.append(self.lines[i][0])
      else:
          values.extend([""] * self.lines.size())  # no values yet
  
      return values
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import datetime
  from datetime import datetime
  import inspect
  from .utils.py3 import range, with_metaclass
  from .lineseries import LineSeries
  from .utils import AutoOrderedDict, OrderedDict, date2num
label_desc: Use image node_id 2 for calling the DataSeries obj's underlying member method code with example usage: obj.getwritervalues() and returns: values