code: def is_pathlike(x: Any) -> bool:
      return isinstance(x, (str, Path))
  
file_path: autogluon/tabular/src/autogluon/tabular/models/fastainn/fastai_helpers.py
imports: import pickle
  import warnings
  from pathlib import Path
  from typing import Any
  import torch
  from fastai.torch_core import flatten_check
label_desc: Use image node_id 2 for calling a global function with example usage: is_pathlike(x) and returns: isinstance