code: def _ispath(p):
      if isinstance(p, (bytes, basestring)):
          return True
      return _detect_pathlib_path(p)
  
imports: import datetime
  import io
  from os import linesep
  import re
  import sys
  from toml.tz import TomlTz
label_desc: Use image node_id 2 for calling a global function with example usage: _ispath(p) and returns: _detect_pathlib_path, True