class_docstr: class to contain filename, fileobj and file position
class_docstr_tok: ["class","to","contain","filename",",","fileobj","and","file","position"]
docstr: Return ``self.fileobj`` if not None, otherwise ``self.filename``
docstr_tok: ["Return","``","self.fileobj","``","if","not","None",",","otherwise","``","self.filename","``"]
code: def file_like(self) -> str | io.IOBase | None:
      """Return ``self.fileobj`` if not None, otherwise ``self.filename``"""
      return self.fileobj if self.fileobj is not None else self.filename
  
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 4 for calling the FileHolder obj's underlying member method code with example usage: obj.file_like() and returns: unknown