code: def is_path_like(type_hint) -> bool:
      # only `PathLike` and `Any` accepts `Path`; check `int` to make sure it's not `Any`
      return is_instance(Path(), type_hint) and not is_instance(
          1, type_hint
      )
  
imports: from __future__ import annotations
  import copy
  import dataclasses
  import importlib
  import json
  import os.path
  from pathlib import Path
  import socket
  from typing import TYPE_CHECKING, get_type_hints
  import typeguard
  import nni.runtime.config
  from .public import is_missing
label_desc: Use image node_id 10 for calling a global function with example usage: is_path_like(type_hint) and returns: unknown