class_docstr: class to contain filename, fileobj and file position
class_docstr_tok: ["class","to","contain","filename",",","fileobj","and","file","position"]
docstr: Test if `self` refers to same files / fileobj as `other`
  
  Parameters
  ----------
  other : object
      object with `filename` and `fileobj` attributes
  
  Returns
  -------
  tf : bool
      True if `other` has the same filename (or both have None) and the
      same fileobj (or both have None
docstr_tok: ["Test","if","`","self","`","refers","to","same","files","\/","fileobj","as","`","other","`","Parameters","--","--","--","--","--","other",":","object","object","with","`","filename","`","and","`","fileobj","`","attributes","Returns","--","--","--","-","tf",":","bool","True","if","`","other","`","has","the","same","filename","(","or","both","have","None",")","and","the","same","fileobj","(","or","both","have","None"]
code: def same_file_as(self, other: FileHolder) -> bool:
      """Test if `self` refers to same files / fileobj as `other`
  
      Parameters
      ----------
      other : object
          object with `filename` and `fileobj` attributes
  
      Returns
      -------
      tf : bool
          True if `other` has the same filename (or both have None) and the
          same fileobj (or both have None
      """
      return (self.filename == other.filename) and (
          self.fileobj == other.fileobj
      )
  
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 3 for calling the FileHolder obj's underlying member method code with example usage: obj.same_file_as(other) and returns: unknown