code: def _is_path_like(path):
      return isinstance(path, str) or hasattr(path, "__fspath__")
  
imports: import os
  import contextlib
  import functools
  import gc
  import socket
  import sys
  import textwrap
  import types
  import warnings
label_desc: Use image node_id 5 for calling a global function with example usage: _is_path_like(path) and returns: unknown