class_docstr: Parses a self-defined CSV Data used for testing.
  
  Specific parameters:
  
    - ``dataname``: The filename to parse or a file-like object
code: def _loadline(self, linetokens):
      itoken = iter(linetokens)
  
      dttxt = next(itoken)  # Format is YYYY-MM-DD - skip char 4 and 7
      dt = date(int(dttxt[0:4]), int(dttxt[5:7]), int(dttxt[8:10]))
  
      if len(linetokens) == 8:
          tmtxt = next(
              itoken
          )  # Format if present HH:MM:SS, skip 3 and 6
          tm = time(int(tmtxt[0:2]), int(tmtxt[3:5]), int(tmtxt[6:8]))
      else:
          tm = self.p.sessionend  # end of the session parameter
  
      self.lines.datetime[0] = date2num(datetime.combine(dt, tm))
      self.lines.open[0] = float(next(itoken))
      self.lines.high[0] = float(next(itoken))
      self.lines.low[0] = float(next(itoken))
      self.lines.close[0] = float(next(itoken))
      self.lines.volume[0] = float(next(itoken))
      self.lines.openinterest[0] = float(next(itoken))
  
      return True
  
file_path: backtrader/backtrader/feeds/btcsv.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from datetime import date, datetime, time
  from ..None import feed
  from ..utils import date2num
label_desc: Use image node_id 1 for calling the BacktraderCSVData obj's underlying member method code with example usage: obj._loadline(linetokens) and returns: True