class_docstr: class to contain filename, fileobj and file position
class_docstr_tok: ["class","to","contain","filename",",","fileobj","and","file","position"]
docstr: Initialize FileHolder instance
  
  Parameters
  ----------
  filename : str, optional
     filename.  Default is None
  fileobj : file-like object, optional
     Should implement at least 'seek' (for the purposes for this
     class).  Default is None
  pos : int, optional
     position in filename or fileobject at which to start reading
     or writing data; defaults to 0
docstr_tok: ["Initialize","FileHolder","instance","Parameters","--","--","--","--","--","filename",":","str",",","optional","filename",".","Default","is","None","fileobj",":","file-like","object",",","optional","Should","implement","at","least","'seek","'","(","for","the","purposes","for","this","class",")",".","Default","is","None","pos",":","int",",","optional","position","in","filename","or","fileobject","at","which","to","start","reading","or","writing","data",";","defaults","to","0"]
code: def __init__(
      self,
      filename: str | None = None,
      fileobj: io.IOBase | None = None,
      pos: int = 0,
  ):
      """Initialize FileHolder instance
  
      Parameters
      ----------
      filename : str, optional
         filename.  Default is None
      fileobj : file-like object, optional
         Should implement at least 'seek' (for the purposes for this
         class).  Default is None
      pos : int, optional
         position in filename or fileobject at which to start reading
         or writing data; defaults to 0
      """
      self.filename = filename
      self.fileobj = fileobj
      self.pos = pos
  
file_path: nibabel/nibabel/fileholders.py
imports: from __future__ import annotations
  import io
  import typing
  from copy import copy
  from .openers import ImageOpener
label_desc: Use image node_id 1 to create a new FileHolder object  with example: obj = FileHolder(filename, fileobj, pos)