class_docstr: Convenience class to encapsulate tractogram file format.
class_docstr_tok: ["Convenience","class","to","encapsulate","tractogram","file","format","."]
docstr: Checks if the file has the right streamlines file format.
  
  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).
  
  Returns
  -------
  is_correct_format : {True, False}
      Returns True if `fileobj` is in the right streamlines file format,
      otherwise returns False.
docstr_tok: ["Checks","if","the","file","has","the","right","streamlines","file","format",".","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",")",".","Returns","--","--","--","-","is_correct_format",":","{","True",",","False","}","Returns","True","if","`","fileobj","`","is","in","the","right","streamlines","file","format",",","otherwise","returns","False","."]
code: def is_correct_format(cls, fileobj):
      """Checks if the file has the right streamlines file format.
  
      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).
  
      Returns
      -------
      is_correct_format : {True, False}
          Returns True if `fileobj` is in the right streamlines file format,
          otherwise returns False.
      """
      raise NotImplementedError()
  
imports: from abc import ABC, abstractmethod
  from .header import Field
label_desc: Use image node_id 6 for calling the TractogramFile obj's underlying member method code with example usage: obj.is_correct_format(cls, fileobj) without return types