code: def stringify_path(path):
      """Convert path-like objects to string.
  
      This is used to allow functions expecting string filesystem paths to accept
      objects using `__fspath__` protocol.
  
      Parameters
      ----------
      path : str or path-like object
  
      Returns
      -------
      str
  
      """
      return (
          path.__fspath__() if isinstance(path, os.PathLike) else path
      )
  
file_path: nilearn/nilearn/_utils/helpers.py
imports: import functools
  import operator
  import os
  import warnings
label_desc: Use image node_id 5 for calling a global function with example usage: stringify_path(path) and returns: unknown