code: def promote_pathlike(
      filepath: typing.Union[os.PathLike, str], /
  ) -> pathlib.Path:
      """Return path object for path-like-object."""
  
file_path: graphviz/graphviz/_tools.py
imports: import functools
  import inspect
  import itertools
  import logging
  import os
  import pathlib
  import typing
  import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: promote_pathlike() without return types