class_docstr: Convenience class to encapsulate tractogram file format.
class_docstr_tok: ["Convenience","class","to","encapsulate","tractogram","file","format","."]
docstr: Loads streamlines from a filename or file-like object.
  
  Parameters
  ----------
  fileobj : string or file-like object
      If string, a filename; otherwise an open file-like object
      pointing to a streamlines file (and ready to read from the
      beginning of the header).
  lazy_load : {False, True}, optional
      If True, load streamlines in a lazy manner i.e. they will not be
      kept in memory. Otherwise, load all streamlines in memory.
  
  Returns
  -------
  tractogram_file : :class:`TractogramFile` object
      Returns an object containing tractogram data and header
      information.
docstr_tok: ["Loads","streamlines","from","a","filename","or","file-like","object",".","Parameters","--","--","--","--","--","fileobj",":","string","or","file-like","object","If","string",",","a","filename",";","otherwise","an","open","file-like","object","pointing","to","a","streamlines","file","(","and","ready","to","read","from","the","beginning","of","the","header",")",".","lazy_load",":","{","False",",","True","}",",","optional","If","True",",","load","streamlines","in","a","lazy","manner","i.e",".","they","will","not","be","kept","in","memory",".","Otherwise",",","load","all","streamlines","in","memory",".","Returns","--","--","--","-","tractogram_file",":",":","class",":","`","TractogramFile","`","object","Returns","an","object","containing","tractogram","data","and","header","information","."]
code: def load(cls, fileobj, lazy_load=True):
      """Loads streamlines from a filename or file-like object.
  
      Parameters
      ----------
      fileobj : string or file-like object
          If string, a filename; otherwise an open file-like object
          pointing to a streamlines file (and ready to read from the
          beginning of the header).
      lazy_load : {False, True}, optional
          If True, load streamlines in a lazy manner i.e. they will not be
          kept in memory. Otherwise, load all streamlines in memory.
  
      Returns
      -------
      tractogram_file : :class:`TractogramFile` object
          Returns an object containing tractogram data and header
          information.
      """
      raise NotImplementedError()
  
imports: from abc import ABC, abstractmethod
  from .header import Field
label_desc: Use image node_id 8 for calling the TractogramFile obj's underlying member method code with example usage: obj.load(cls, fileobj, lazy_load) without return types